Backing Files Automatically to a Network Share in Linux

Mount a network share and backup wanted files using SMB

How to mount an SMB share in linux

sudo apt install cifs-utils

Make a directory 
sudo mkdir /mnt/backup
Mount the folder using 
sudo mount -t cifs -o rw,vers=3.0,credentials=/root/.smbcredentials // /mnt/backup/

Automatically mount at system startup (filestable)

sudo nano /ets/fstab
#klipper config backup to network share
// /mnt/backup/ cifs rw,vers=3.0,credentials=/root/.smbcredentials

Perform a manual backup

sudo rsync -a /home/brewzr/printer_data/config/ /mnt/backup/klipper_backup

Use crontab to create auto backups

sudo crontab -e
Paste this at the bottom, save and close

# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# For more information see the manual pages of crontab(5) and cron(8)
# m h  dom mon dow   command
0 5 * * 1 sudo rsync -a /home/brewzr/printer_data/config/ /mnt/backup/klipper_backup