Hi, I am running rsync version 2.6.9 under Ubuntu 8.04. I am trying to backup a NTFS partition to another hard drive formated as NTFS, using the --delete option, since I want a differential backup. The problem is that rsync first deletes all files on the backup disk and then copies everthing again. I am using the following command and it still doesnt work, and also tried without the --size-only and --modify-window=1 option.s rsync --stats --modify-window=1 --size-only --dry-run -aruvv --progress --delete /media/sda1/Documents\ and\ Settings/simao/ /media/sda1/work/ /media/truecrypt6/backup/ Thank you, Simao
On Tue, 2008-10-21 at 23:22 +0100, Simao M wrote:> I am running rsync version 2.6.9 under Ubuntu 8.04. > > I am trying to backup a NTFS partition to another hard drive formated > as NTFS, using the --delete option, since I want a differential > backup. > > The problem is that rsync first deletes all files on the backup disk > and then copies everthing again. > > I am using the following command and it still doesnt work, and also > tried without the --size-only and --modify-window=1 option.s > > rsync --stats --modify-window=1 --size-only --dry-run -aruvv > --progress --delete /media/sda1/Documents\ and\ Settings/simao/ > /media/sda1/work/ /media/truecrypt6/backup/This might be an NTFS-related case or character set problem. Please pass -i and send a representative portion of the output so we can see what is going on. Matt
On Wed, 2008-10-22 at 12:49 +0100, Simao M wrote:> *deleting work/software/prc/dcpcrypt2/Hashes/DCPtiger.pas > >f+++++++++ software/prc/dcpcrypt2/Hashes/DCPtiger.pas> rsync --stats --modify-window=1 --size-only --dry-run -aruvv > --progress --delete /media/sda1/Documents\ and\ Settings/simao/ > /media/sda1/work/ /media/truecrypt6/backup/Ah. Your source argument /media/sda1/work/ with a trailing slash, which puts that directory at the root of the rsync file list, does not match the existing data in the work/ subdirectory of the destination. How you should fix this depends on where you want the source files to go. Let's take the source file /media/sda1/work/software/prc/dcpcrypt2/Hashes/DCPtiger.pas as an example. If you want it to go to /media/truecrypt6/backup/work/software/prc/dcpcrypt2/Hashes/DCPtiger.pas , then either change the source argument to /media/sda1/work (without the trailing slash) or change the destination to /media/truecrypt6/backup/work/ . On the other hand, if you want the file to go to /media/truecrypt6/backup/software/prc/dcpcrypt2/Hashes/DCPtiger.pas , then leave the rsync command as is but run a manual "mv /media/truecrypt6/backup/work/* /media/truecrypt6/backup/" to avoid recopying all the files. Matt