Re: backup with rsync

James <[email protected]>
Newsgroups gmane.user-groups.linux.ottawa.general
Message-ID <[email protected]>
  On 06/23/10 22:56, R RENAUD wrote:
> --- On Wed, 6/23/10, James<[email protected]>  wrote:
>> I'm using the following
>> command to backup my home directory:
>>
>> rsync -avh --delete /home/rjl /mnt/esata/home/
>>
>> But why does it keep deleting WinXP.vdi?
>>
>> deleting home/rjl/.VirtualBox/HardDisks/WinXP.vdi
>>
>> ls -l /mnt/esata/home/rjl/.VirtualBox/HardDisks/
>> total 44869748
>> -rw------- 1 rjl rjl 38078142464 Jun 22 20:48 WinXP.vdi
> You've told rsync to delete any files in /mnt/esata/home/ that aren't
> in /home/rjl.
>
> The ls command shows that the file exists in
> /mnt/esata/home/rjl/.VirtualBox/HardDisks/ but rsync doesn't think it
> exists in /home/rjl/.VirtualBox/HardDisks/.
>
> If you don't want to remove that file, use something like
>    --exclude=home/rjl/.VirtualBox
>
> The '-n' option can help you get the path right.
>
> Hope that helps.
> roland
>
Thanks.

The rsync before it is the one that deletes home/rjl.  :-(
You gave me the idea to check that. :-)
-- 
OCLUG general discussion list
[email protected]
http://oclug.on.ca/mailman/listinfo/oclug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.