[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: W: best way to clone server data using rsync



On Wed, May 02, 2012 at 06:16:59PM +1200, Chris Bannister wrote:
> On Tue, May 01, 2012 at 11:38:26AM -0500, Indulekha wrote:
> > Often I use something like:
> > 
> > rsync --archive --one-file-system --hard-links --human-readable --inplace --numeric-ids --delete ...
>                                                                                           ^^^^^^^^
> > to duplicate a system, with the '~/.rsync-exclude' file containing 
>   ^^^^^^^^^^^^^
> Is that a mistake? or am I musunderstanding the "--delete" option.
> 
> Note: I am not familiar with rsync, but I am familiar with the term
> "duplicate"
> 

No mistake Chris, the "--delete" option deletes data from the 
copy that doesn't exist in the source. The idea is to have only 
the same data as the source you're copying, aside from the 
stuff to ignore listed in the "~/.rsync-exclude" file (stuff 
like /etc/fstab, if you're making a bootable copy of your system 
on an external drive).

The links I gave will give a lot more detail, and rsync's 
man page is quite good too, though perhaps a tad opaque in 
places for the uninitiated. :) 
 
-- 
❤ ♫ ❤ ♫ ❤ ♫ ❤   
 Indulekha 


Reply to: