User Tools

Site Tools


educare:rsync

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
educare:rsync [2020/01/07 21:16] profproeducare:rsync [2020/06/08 22:20] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +=====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/
 +
 +<code>
 +
 +[PC1]                      [PC2]
 +
 +openssh-client             openssh-server
 +rsync                      rsync
 +
 +</code>
 +
 +in questo ultimo esempio deve essere installato:
 +  - sul pc1 //openssh-client// 
 +  - sul pc2 //[[didattici:openssh-server]]//
 +  - inoltre si deve aprire una porta del firewall [[didattici: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
 +
 +https://www.debian.org/mirror/push_server