Results 1 to 3 of 3
Hi all, I'm using the command below to sync two directories. Problem is insted of deleting the files on the target directory it simply appends a ~ character at the ...
- 09-08-2010 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 7
rsync not deleting files on target
Hi all, I'm using the command below to sync two directories. Problem is insted of deleting the files on the target directory it simply appends a ~ character at the end of the file name. Not sure why this is happening?
I'd like to have all deletes on the source replicated on target.
The source file had a file called test /home/test.txt which I've deleted.Code:rsync -havub --delete /home/ /backup/home/
Ran the sync again.
The target now has a file called /backup/home/test.txt~
Any help is appreciated.
Thanks
- 09-08-2010 #2Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
Rsync Manual - man rsyncNot sure why this is happening?
Code:-b, --backup make backups (see --suffix & --backup-dir) --backup-dir=DIR make backups into hierarchy based in DIR --suffix=SUFFIX backup suffix (default ~ w/o --backup-dir)
- 09-08-2010 #3Just Joined!
- Join Date
- Sep 2010
- Posts
- 7
Thanks for the reply, omitting the 'b' switch fixed the problem

Cheers


Reply With Quote
