home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] [oclug] backup with rsync

I forgot to mention that oclug [ at ] lists [ dot ] oclug [ dot ] on [ dot ] ca is a deprecated list.
Use this one instead.
linux [ at ] lists [ dot ] oclug [ dot ] on [ dot ] ca

roland

--- On Thu, 6/24/10, R RENAUD <rjrenaud [ at ] rogers [ dot ] com> wrote:

> From: R RENAUD <rjrenaud [ at ] rogers [ dot ] com>
> Subject: Re: [oclug] backup with rsync
> To: "General Membership Discussion List" <oclug [ at ] lists [ dot ] oclug [ dot ] on [ dot ] ca>
> Date: Thursday, June 24, 2010, 2:56 AM
> --- On Wed, 6/23/10, James <bjlockie [ at ] lockie [ dot ] ca>
> 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
> 
> 


message navigation