Hi Guys / Sir Falko, I need help regarding rsync switches. what switch should i use if i will have for example a main server and then backup server. and the main server will execute the rsync via ssh to backup files on the backup server. Here is my command. rsync -avz -r -e ssh /Sourcefolder [email protected]:/Destinationfolder My question is, is my syntax for incremental backup? or overwrite? or something else? I already read the man page for rsync but i cannot fully understand. Hoping for your immediate response. thanks! Joel
I'd use rsync -avz --delete This copies only files that have changed since the last run and deletes files that have been deleted on the source (also since the last run).