From: Grant on 7 Mar 2010 00:45 On Sat, 06 Mar 2010 22:33:10 -0500, GangGreene <GangGreene(a)example.com> wrote: >Greg Heilers wrote: > >> I would like to copy my existing set-up to a new and larger hard drive. >> Basically, I want to keep my existing partition configuration - but >> copy them all to larger partitions on a new drive. What is the easiest >> and most fool-proof way of doing this - preferably command-line, but >> GUI if need be? >> >> Thanks. > >rsync Seconded ;)
From: JohnF on 9 Mar 2010 05:55 Grant <omg(a)grrr.id.au> wrote: > GangGreene <GangGreene(a)example.com> wrote: >> Greg Heilers wrote: >> >>> I would like to copy my existing set-up to a new and larger hard drive. >> >>rsync > > Seconded ;) I use rsync a lot, mostly to keep backups sync'ed. It's great. But for "cloning" an entire directory structure from scratch, I typically use cp -a as suggested earlier. Why do you guys feel rsync's superior for this purpose, too? -- John Forkosh ( mailto: j(a)f.com where j=john and f=forkosh )
From: Ewald Pfau on 9 Mar 2010 07:43 JohnF <john(a)please.see.sig.for.email.com>: > I use rsync a lot, mostly to keep backups sync'ed. It's great. > But for "cloning" an entire directory structure from scratch, > I typically use cp -a as suggested earlier. Why do you guys > feel rsync's superior for this purpose, too? For cloning into a freshly new location, cp looks just fine. But if the location already exists, cp leaves outdated candidates alone. By the time, some lot of garbage may accumulate. rsync takes care of this. With 'backup' enabled, the outdated stuff won't just disappear. rsync will move it elsewhere. This is beyond of the capabilities of cp. E.g. for moving all this usenet stuff around: tgt="/mnt/other"; cd /usr/lib; rsync -auvPb --delete --backup-dir=$tgt/.newsdel news $tgt/usr/lib; cd /var/lib; rsync -auvPb --delete --backup-dir=$tgt/.newsdel news $tgt/var/lib; cd /var/spool; rsync -auvPb --delete --backup-dir=$tgt/.newsdel news $tgt/var/spool;
From: Grant on 9 Mar 2010 12:54 On Tue, 9 Mar 2010 10:55:09 +0000 (UTC), JohnF <john(a)please.see.sig.for.email.com> wrote: >Grant <omg(a)grrr.id.au> wrote: >> GangGreene <GangGreene(a)example.com> wrote: >>> Greg Heilers wrote: >>> >>>> I would like to copy my existing set-up to a new and larger hard drive. >>> >>>rsync >> >> Seconded ;) > >I use rsync a lot, mostly to keep backups sync'ed. It's great. >But for "cloning" an entire directory structure from scratch, >I typically use cp -a as suggested earlier. Why do you guys >feel rsync's superior for this purpose, too? Possibly identical if you compare with 'cp -a', but sometimes it's easier to suggest rsync than explain why 'cp -aR' or 'cp -ar' could be very bad ideas (for hardlinks? I forget details). Rsync has a lots of worked examples in the man page too. Grant.
From: Mike Jones on 9 Mar 2010 15:29 Responding to Ewald Pfau: [...] > With 'backup' enabled, the outdated stuff won't just disappear. rsync > will move it elsewhere. This is beyond of the capabilities of cp. cp --backup=numbered ??? -- *=( http://www.thedailymash.co.uk/ *=( For all your UK news needs.
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 Prev: Building TeX Live on -current Next: seamonkey 2.0.3 upgrade on 12.2 |