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

sothisistheinternet sothisistheinternet at gmail.com
Thu Feb 22 02:00:39 WST 2007


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20070222/23425455/attachment.html>


More information about the plug mailing list