Backup

July 4, 2012   

No servidor de backup

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

No desktop

$ rsync --progress -vhrLpt --delete /media/externo/Musicas /media/backup
$ rsync --progress -vhrLpt --delete /media/externo/Imagens /media/backup
$ rsync --progress -vhrLpt --delete /media/externo/Documentos /media/backup

Com meu script

$ 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

http://transamrit.net/docs/rsync/



comments powered by Disqus