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

sothisistheinternet sothisistheinternet at gmail.com
Sat Mar 3 19:29:46 WST 2007

On 2/22/07, sothisistheinternet <sothisistheinternet at gmail.com> 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

Any idea why rsync -avz --delete /pub/share1 /mnt/usbdrive1 is so incredibly
slow? It takes longer to run than just reformatting the 320GB USB drive and
copying the data from the /pub/share1 directory (260GB) back to it!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20070303/fa9f667c/attachment.html>

More information about the plug mailing list