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

Re: HOWTO->rsync usage.......



also sprach Courtney Thomas <ccthomas@flash.net> [2002.01.06.0200 +0100]:
> I've just installed a new HD. What do I need to do to prepare it for use 
> with rsync ?
> 
> What command is appropriate to exactly mirror the original HD ?

assuming mount-points /new and /old, rsync will mirror like this:

  rsync -avutP --delete --delete-after /old/ /new

you can leave the -v and -P options out if you wish (less verbose).

take care to postfix the /old with a slash, but *not* to have one after
/new. man rsync will explain this - it has to do with the --delete flag.

> I've also not used SSH before. What is required to enable this capability ?

assuming the other harddrive was on another machine called "newhdd",
you'd use rsync tunneled over SSH like this:

  rsync -avutP -e ssh --delete --delete-after /old/ newhdd:/new

hth
  
-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
  
"it appears that pl/i (and its dialects) is, or will be, the most widely
 used higher level language for systems programming."
                                                          -- j. sammet

Attachment: pgp4Ebn7P6kGA.pgp
Description: PGP signature


Reply to: