Diferencia entre revisiones de «Rsync»
De gacq wiki
(→gacq.com-put) |
(→Most used options) |
||
Línea 2: | Línea 2: | ||
-v, --verbose increase verbosity | -v, --verbose increase verbosity | ||
-u, --update skip files that are newer on the receiver | -u, --update skip files that are newer on the receiver | ||
− | -z, --compress compress file data during the transfer | + | -z, --compress compress file data during the transfer |
+ | -e, --rsh=COMMAND specify the remote shell to use | ||
-a, --archive archive mode; same as -rlptgoD (no -H) | -a, --archive archive mode; same as -rlptgoD (no -H) |
Revisión del 10:29 22 sep 2006
Contenido
Most used options
-v, --verbose increase verbosity -u, --update skip files that are newer on the receiver -z, --compress compress file data during the transfer -e, --rsh=COMMAND specify the remote shell to use -a, --archive archive mode; same as -rlptgoD (no -H) -r, --recursive recurse into directories -l, --links copy symlinks as symlinks -p, --perms preserve permissions -t, --times preserve times -g, --group preserve group -o, --owner preserve owner (super-user only) -D same as --devices --specials
My notebook syncronization
gacq.com-get
echo Receiving..... rsync -avuze 'ssh -p 22' --delete anysyncuser@myserver:/srv/gacq/rsync/ rsync
gacq.com-put
echo Sending..... rsync -avuze 'ssh -p 22' --delete rsync anysyncuser@myserver:/srv/gacq/
Duplicando una maquina con rsync
rsync -v -r -p -o -g -D -t -S -l -H \ --exclude /mnt/ \ --exclude /proc/ \ --exclude /tmp/ \ --exclude /home/ / /mnt/fireball/
Boot from a CD-ROM and mount the target-disk. Fix fstab and lilo.conf. Create /mnt and /proc and set the right permissions (for this directories). Then run lilo and reboot. Next time you run rsync, add these option to the command-line:
--exclude /etc/fstab \ --exclude /etc/lilo.conf \ --delete
Limiting tranfer rate
--bwlimit=1000