[plug] what command does the same thing as robocopy /mir?

Richard Meyer meyerri at westnet.com.au
Thu Feb 22 09:14:09 WST 2007


On Thu, 2007-02-22 at 02:00 +0900, sothisistheinternet wrote:
> On 2/21/07, Hendrik Strydom <hns1 at iinet.net.au> wrote:
>         On Wed, 2007-02-21 at 02:50 +0900, sothisistheinternet wrote:
>         > Hi all,
>         >
>         > If I have a drive that I want to synchronise onto a usb hard
>         drive
>         > then, under windows, I use robocopy /mir. I now have the
>         same 
>         > situation under linux...so what's the equivalent command?
>         
>         rsync is good with jobs like this.
>         Generally a command like
>         rsync -avg /source /target will quickly sync source and
>         target.
>         Depending on what you want there are many other options, so
>         you 
>         definitely need to review the man page.  For backups (i..e
>         multiple
>         copies of changed files) look at something like rsync-backup.
>         There are likely many other similar products as well.
> 
> 
> So something like rsync -az --delete /pub/share1 /mnt/usbdrive1? I
> think when using -a that -g is already accounted for (from my reading
> of the man pages, as you suggested). Your suggestion of using -v is a
> good one so I know if it's actually doing the right things! 
> 
> Cheers,
> 
> Ari 
> 
Well, I don't know what that robocopy thing is, but when I want to back
up all the stuff in my /home directory, I use:

> rsync -avc --delete /home/ /media/Desktop/home/

where Desktop is a named partition on my USB drive. I suppose I could have said:

> rsync -avc --delete /home /media/Desktop/

and it might have done the same thing, but I found a command that worked and that was enough for me.

HTH


-- 
Richard Meyer <meyerri at westnet.com.au>
Binary is as easy as 1, 10, 11

Linux Counter user #306629




More information about the plug mailing list