educare:rsync
rsync
Esempio in locale (due cartelle nello stesso computer)
rsync -uvaz --progress /media/sorgente/ /home/destinazione/
Esempio in remoto (rsync client viene eseguito sul pc1, mentre sull'altro si esegue un server pc2)
rsync -uvaz -e ssh /path/source/folder/ user@ipdest:/path/dest/folder/
[PC1] [PC2] openssh-client openssh-server rsync rsync
in questo ultimo esempio deve essere installato:
- sul pc1 openssh-client
- sul pc2 openssh-server
- inoltre si deve aprire una porta del firewall ufw sul pc2
ufw allow from 192.168.1.10 to any port 22
/etc/hosts.allows
il file rsyncd.conf permette di avviarlo come server specificando –daemon
https://wiki.archlinux.org/index.php/Full_system_backup_with_rsync
educare/rsync.txt · Last modified: 2020/06/08 22:20 by 127.0.0.1