rsync --delete problems

Torben Schou Jensen tsj at swampthing.dk
Mon Dec 3 09:23:20 GMT 2007


Seams I have sorted out my problem until futher.

By doing rsync over SSH to my NAS drive instead of mapping my NAS drive
using smbmount, --delete works fine.

/Torben

> For some time I have been using rsync to backup data between different
> machines and my NAS drive.
>
> But within the last 2 days I have found out that rsync is not removing old
> files from destination - directories renamed or removed from source.
>
> In this example I want to sync files on my Debian Linux server to a NAS
> drive. NAS drive is mounted using smbmount.
>
> Using "-avhzn" dry-run it indicate f3 and file3 to be removed.
>
> ==> Method SMBFS mount
> ==> smbmount <diskstation> /mnt/NAS.20071201.204045 -o
> username=root,password=xxx
> ==> rsync -avhzn --delete --progress /mnt/6/tst
> /mnt/NAS.20071201.204045/Archive
> building file list ...
> 4 files to consider
> tst/f3/file3*deleting
> tst/f3/*deleting
> tst/.d...p.....
> tst/file.f...p.....
> tst/f4/file3.f...p.....
> sent 121 bytes  received 38 bytes  318.00 bytes/sec
> total size is 7.48M  speedup is 47059.14
> ==> ls -l /mnt/NAS.20071201.204045/Archive
> total 0
> drwx------ 1 root root 0 2007-12-01 19:27 tst
> ==> ls -lR /mnt/NAS.20071201.204045/Archive/tst
> /mnt/NAS.20071201.204045/Archive/tst:
> total 3660
> drwx------ 1 root root       0 2007-12-01 19:06 f3
> drwx------ 1 root root       0 2007-12-01 19:06 f4
> -rwx------ 1 root root 3741202 2007-11-29 00:46 file
> /mnt/NAS.20071201.204045/Archive/tst/f3:
> total 3660
> -rwx------ 1 root root 3741202 2007-11-29 00:46 file3
> /mnt/NAS.20071201.204045/Archive/tst/f4:
> total 3660
> -rwx------ 1 root root 3741202 2007-11-29 00:46 file3
>
> But actual run does not remove any files on destination.
>
> ==> Method SMBFS mount
> ==> smbmount <diskstation> /mnt/NAS.20071201.204156 -o
> username=root,password=xxx
> ==> rsync -avhz --delete --progress /mnt/6/tst
> /mnt/NAS.20071201.204156/Archive
> building file list ...
> 4 files to consider
> tst/.d...p.....
> tst/file.f...p.....
> tst/f4/file3.f...p.....
> sent 121 bytes  received 38 bytes  318.00 bytes/sec
> total size is 7.48M  speedup is 47059.14
> ==> ls -l /mnt/NAS.20071201.204156/Archive
> total 0
> drwx------ 1 root root 0 2007-12-01 19:27 tst
> ==> ls -lR /mnt/NAS.20071201.204156/Archive/tst
> /mnt/NAS.20071201.204156/Archive/tst:
> total 3660
> drwx------ 1 root root       0 2007-12-01 19:06 f3
> drwx------ 1 root root       0 2007-12-01 19:06 f4
> -rwx------ 1 root root 3741202 2007-11-29 00:46 file
> /mnt/NAS.20071201.204156/Archive/tst/f3:
> total 3660
> -rwx------ 1 root root 3741202 2007-11-29 00:46 file3
> /mnt/NAS.20071201.204156/Archive/tst/f4:
> total 3660
> -rwx------ 1 root root 3741202 2007-11-29 00:46 file3
>
> If I use rsync to sync directories within my server everything works fine
> and old files are deleted without problems.
>   rsync -avhz --delete --progress /mnt/6/tst/ /mnt/6/tstdest/
>
> rsync  version 2.6.9  protocol version 29
>
> Have I found a bug, or what am I doing wrong???
>
> Brgds
> Torben
>
>
> --
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>




More information about the rsync mailing list