Discussion in 'General' started by joel_griego, Apr 17, 2009.

  1. joel_griego

    joel_griego New Member

    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!

  2. falko

    falko Super Moderator ISPConfig Developer

    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).
  3. joel_griego

    joel_griego New Member

    Thank you sir. Is -avz switch recursive? Or do i still need to use -r or ther switches? Thanks.

  4. tebokkel

    tebokkel New Member

    man rsync

    -a, --archive archive mode; same as -rlptgoD (no -H, -A)


Share This Page