problem with the delete option

Matt McCutchen hashproduct+rsync at
Sun Jan 21 00:33:31 GMT 2007

On 1/20/07, Manuel Kissoyan <manuelk at> wrote:
> im trying to backup a cpanel server and made a list in the file with the
> directories and files to be backed up and also another file with the
> excluded dir/file list.
> For some reason when an account is deleted from the server then when rsync
> is backing it up is not removing this account directory and files. Any idea
> what could be the problem?
> Im using version 2.6.8  protocol version 29
> /usr/local/bin/rsync -vrplogDtzH --stats --delete-during --partial --timeout=500
>  --exclude-from=/root/rsyncexcludedfiles --files-from=/root/rsyncincludedfiles
>  -e ssh root at xx.xx.xx.xx:/ /home/server1 > /var/log/server1.log 2>&1
> my included lis:
> ---
> /home
> ---

Your setup looks correct: since you listed /home and used -r, rsync
should delete subdirectories of /home from the backup when they are
deleted from the server.  Try running rsync in double-verbose mode
(-vv) to get more information about why it isn't deleting the
directory from the backup.


More information about the rsync mailing list