ze swojego katalogu domowego wrzucamy zawartosc katalogu /home/jarek/dirsync na komputer 192.168.x.x
/usr/bin/rsync -e ssh -avzp --delete --exclude "*.bak" /home/jarek/dirsync/ jarek@192.168.x.x:/home/jarek/dirsync/
ewentualnie aby przyspieszyc synchronizacje po ethernecie mozna uzyc opcji : -e ‘ssh -c blowfish’ ustawiaja szybszy sposob szyfrowania
http://samba.anu.edu.au/rsync/examples.html inne : Fancy footwork with remote file lists
One little known feature of rsync is the fact that when run over a remote shell (such as rsh or ssh) you can give any shell command as the remote file list. The shell command is expanded by your remote shell before rsync is called. For example, see if you can work out what this does:
rsync -avR remote:'`find /home -name "*.[ch]"`' /tmp/
note that that is backquotes enclosed by quotes (some browsers don’t show that correctly).