|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
rsync not syncing deleted directories
i use this command:
/usr/local/bin/rsync -avpu --progress --stats --delete --force --bwlimit=10000 --password-file=/etc/.rs_pass --exclude=".*" rsync://rsync@66.90.xx.xx/x/x /usr/home this command is executed on server2. server2 is supposed to exactly mirror the /usr/home/x on 66.90.xx.xx server2 is a backup files never change on this server, changes are made on 66.90.xx.xx the problem is when i delete a folder on 66.90.xx.xx such as /usr/home/x/somefolder it does not remove /usr/home/x/somefolder on the mirror (server2). When i use the -n dry run command it correctly shows the folders that should be deleted but on the actual run it does not delete them. Does anyone know how to fix this. Both servers are freebsd running rsync version 2.6.2 protocol version 28 |
|
#2
|
||||
|
||||
|
This command works for me:
Code:
rsync -qrptu --delete dirname/ 192.168.0.50::rsync/
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > rsync not syncing deleted directories |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|