rsync

Git Übertragen:
rsync -av -e ssh root@XXX.hosteurope.de:/uuu/git/ /uuu/git/

.---------------------------

rsync source destination
 rsync -avz source destination  Beibehalten von Zugriffsrechten Besetzer Zeitstempel
    -p, --perms                 preserve permissions

I tend to always use the -a flag, which is an aggregation of -p and several other useful ones:

    -a, --archive               archive mode; equals -rlptgoD (no -H,-A,-X)
rsync -r . root@178.xxx.xxx.xxx:/var/chef
rsync -vP username@host:/path/to/file .

Option -P: ermöglicht das Fortsetzen einer Übertragung.

 mirror a directory between my "old" and "new" ftp sites with the command
 
 rsync -az -e ssh --delete ~ftp/pub/samba/ nimbus:"~ftp/pub/tridge/samba"


z: Dateien komprimieren
--delete Delete files that don't exist on the sending side


----------
rsync -av -e ssh root@server.example.com:/home/ /ziel/