On Sunday 26 March 2006 10:42 pm, Alexander Dalloz wrote: > An alternate could be to write a little script which makes use of > temporary PID files. Let each rsync command create such a PID file and > let the following rsync command only start if the PID file of the former > rsync got erased by the terminated command. An advanced example can be > found on > http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/commun >ications.html > > under "rsync". > > I imagine the script will be like this (pls mind the word wrap): > > #!/bin/bash > > rsync -avzgorp --delete -e ssh root@xxxxxxxxxxxxx:/var/qmail/ /var/qmail/ > > Hm, why all these options? You are using "-a", so it already sets > "rlptgoD". Your options combination could just be "-avzD". ("-D": are > there really devices in what you rsync?). Ow, so when using -a (archive mode), it will preserve the owner, group, and permission? Thanks Alexander, I'll into it and report here. -- Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial http://linux2.arinet.org 11:52:16 up 2:57, 2.6.15-1.1830_FC4 GNU/Linux Let's use OpenOffice. http://www.openoffice.org