5 private links
The rsync-system-backup program uses rsync to create full system backups of Linux systems. Supported backup destinations include local disks (possibly encrypted using LUKS) and remote systems that are running an SSH server or rsync daemon. Each backup produces a timestamped snapshot and these snapshots are rotated according to a rotation scheme that you can configure. The package is currently tested on cPython 2.7, 3.4, 3.5, 3.6, 3.7 and PyPy (2.7).
path
rsync -avzh --progress --delete --exclude={/dev/,/proc/,/sys/,/tmp/,/run/,/mnt/,/media/,/home/,/lost+found,/backup/*} -e ssh /var username@myhost.rsync.net:remote_folder
On the synology, I used the SynoCommunity borgbackup package. Once installed, go create a shared folder named “borgbackup”. Then, the trick is to create a specific RSA key that will be used by SSH to authenticate the backup user. You can create a specific group/user for your backups, I was lazy to do so and I don’t think it has much benefits. I’ll therefore use my computer username to connect. Once the key is created with ssh-keygen -f ~/.ssh/id_rsa_borgbackup -C "borg@pm.me", I copied the key to the synology in ~/.ssh/authorized_keys. Note that the synology home directory needs 755 permissions, as always ssh permissions should be: