rsync - what actually happens?

view story

http://www.linuxquestions.org – MY COMMAND: rsync -e 'ssh -p 22' -avl --delete --stats --progress [email protected]:/var/www/html ~/backuptest Hello everyone. I'm new to rsync, so I was curious if you could shed some light on what happens behind the scenes. With my above command, the files will backup to the specified directory. But if I were to change '~/backuptest' to '/var/www/html' would it replace all of the files in there that are outdated? Also, I was tinkering with lsync and it looks like the program is nothing more than a scheduler for rsync. Is that correct? Can/should I just do that function with a cronjob? (HowTos)