On the backup server

sudo -e /etc/rsyncd.conf
sudo systemctl restart rsyncd.socket

On the desktop

rsync --progress -vhrLpt --delete /media/external/Music /media/backup
rsync --progress -vhrLpt --delete /media/external/Images /media/backup
rsync --progress -vhrLpt --delete /media/external/Documents /media/backup

Using my script

Available at

clone_dir -c ~/My_Dir
clone_dir -c ~/Docs/ ~/nfs/ ~/Docs/rsync_exclude.txt
clone_dir ~/Docs ~/Docs/rsync_exclude.txt

Julio Batista Silva
Julio Batista Silva
Data Engineer

I’m a computer engineer passionate about science, technology, photography, and languages. Currently working as a Data Engineer in Germany.

comments powered by Disqus