--delete not working

2012-03-12 Thread Salatiel Filho
Hi guys , i need some help. I am trying to make a full sync of two of my servers. But i noticed a very odd thing. If i create a directory , for example /usr/include/SOME_FOLDER/some_file on server2 when i do : root@server1 #$ rsync -avhH --exclude proc/ --exclude sys/ --exclude dev/ / r

Re: --delete not working

2012-03-12 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Are there any errors? Rsync will abort the deletions if there are any errors. Run without the -v to get only the errors in the output. On 03/12/12 15:00, Salatiel Filho wrote: > Hi guys , i need some help. I am trying to make a full sync of two > of

Re: --delete not working

2012-03-12 Thread Salatiel Filho
i rerun removing the -v and i get no errors at all. Actually no transfer at all because rsync thinks there are no more differences between the servers. []'s Salatiel On Mon, Mar 12, 2012 at 16:02, Kevin Korb wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Are there any errors?  Rs

Re: --delete not working

2012-03-12 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does the "SOME_FOLDER" match any of your excludes? You didn't root the excludes with a leading / so you are excluding any directory named proc sys or dev anywhere in the tree. On 03/12/12 15:05, Salatiel Filho wrote: > i rerun removing the -v and i g

Re: --delete not working

2012-03-12 Thread Salatiel Filho
Actually that is the problem. SOME_FOLDER is /usr/include/sys which is being ignore because of the sys/* exclude. Now i have another problem , how can i exclude the /sys , /proc and /dev for being synced? if i put rsync -avzhH --delete --exclude /proc/* --exclude /dev/* --exclude /sys/* / root

Re: --delete not working

2012-03-12 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This should be all you need (plus the other paths of course): - --exclude=/proc You may also be interested in --one-file-system. On 03/12/12 15:16, Salatiel Filho wrote: > Actually that is the problem. SOME_FOLDER is /usr/include/sys which > is being

Re: --delete not working

2012-03-12 Thread Salatiel Filho
sorry , i was not forgetting that. Just forgot to type when mailing :) []'s Salatiel On Mon, Mar 12, 2012 at 16:16, John Van Essen wrote: > Aren't you missing something in your rsync command?  (Hint: subject line) > >    John > > > On Mar 12, 2012, at 14:00, Salatiel Filho wrote: > >> Hi guys

Re: --delete not working

2012-03-12 Thread Salatiel Filho
Thanks a lot kevin. []'s Salatiel On Mon, Mar 12, 2012 at 16:18, Kevin Korb wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > This should be all you need (plus the other paths of course): > - --exclude=/proc > > You may also be interested in --one-file-system. > > On 03/12/12 15:16,

Re: --delete not working

2012-03-12 Thread John Van Essen
Aren't you missing something in your rsync command? (Hint: subject line) John On Mar 12, 2012, at 14:00, Salatiel Filho wrote: > Hi guys , i need some help. I am trying to make a full sync of two of > my servers. But i noticed a very odd thing. > If i create a directory , for example > /u

[Bug 8804] rsync -aH --only-write-batch hangs

2012-03-12 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=8804 Wayne Davison changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 8565] rsync hangs when using --only-write-batch and --hard-links

2012-03-12 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=8565 Wayne Davison changed: What|Removed |Added CC||christian.heinlein@htw-aale

Error recovery

2012-03-12 Thread Jack Tavares
I am trying to figure out what happens in the following scenario: I use rsync to copy files from hostA:/dir1 to hostB:/dir1 with the command (from hostB) rsync -abvt --delete-after --suffix=~ hostA:/dir1 /dir1 So if fileA exists already on both boxes (it has previously been rsynce-d) and fileA

Re: Error recovery

2012-03-12 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 While a file is being updated it is stored as a temporary name (.filename.string). When the file is complete the old version is deleted and the temp file is renamed into place. If rsync aborts during this process the temp file is deleted to ensure th