Backup

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 https://github.com/jbsilva/dotfiles/blob/main/.zsh/clone_dir.zsh.

clone_dir -c ~/My_Dir julio@juliobs.com:~/www/files/
clone_dir -c ~/Docs/ ~/nfs/ ~/Docs/rsync_exclude.txt
clone_dir ~/Docs 10.0.0.1::backup ~/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