From: JohnF on 10 Mar 2010 07:54 Mike Jones <Not(a)arizona.bay> wrote: > Responding to Ewald Pfau: >> Mike Jones <Not(a)arizona.bay>: >>> Responding to Ewald Pfau: >> >>>> But quite sure, it won't move a whole tree, selectively, to a >>>> 'deleted'-destination, which is a third path, additionally to source >>>> and target. >>> >>> Er, Eh? >> >> After rsync from source to target -> target-path is a clone of >> source-path. And -> Anything different, that has been in target-path, is >> now in 'deleted'-path (so, has been moved selectively.) > > Ok, but with "cp --backup=numbered" you get copies of the replaced files > tagged with numbered suffixes. Whack away as many times as you like, and > you get just as many numbered backups. Isn't that a /useful/ thing? Can be very useful. VMS has a similar "version" feature built into the OS's shell (DCL), so that the complete specification of file name.ext is actually name.ext;1 or name.ext;2, etc, highest number = most recent. If you refer to name.ext without an explicit ;version suffix then you get the most recent (except that deleting demands an explicit version or name.ext;* to delete them all). Editing name.ext creates a new version when you write it, as does copying anything to name.ext, etc. > I'm not seeing or experiencing a problem with "cp -backup=numbered" and > its an easy enough thing to bulk-delete all *~x~ files when done. Even better, VMS has a purge command, so purge name.ext keeps the most recent. And purge/keep=3 name.ext keeps the three most recent. (There seems to me to be lots of useful VMS command-line stuff that Unix shells could reasonably easily implement.) -- John Forkosh ( mailto: j(a)f.com where j=john and f=forkosh )
From: tapp on 10 Mar 2010 11:28 I prefer rsync for cloning running systems because of "--exclude" (for / proc, /sys, /tmp, *.pid, etc) and/or "--one-file-system" (for nested mounts to be separated on the destination drive). Also, rsync alphabetically sorts the files before writing. ;-) -- Arnd
From: Mike Ranque on 10 Mar 2010 12:28 Responding to tapp: > I prefer rsync for cloning running systems because of "--exclude" (for / > proc, /sys, /tmp, *.pid, etc) and/or "--one-file-system" (for nested > mounts to be separated on the destination drive). > > Also, rsync alphabetically sorts the files before writing. ;-) cp has a one-file-system flag, and a simple bash script could avoid dirs you don't want to copy across. It seems to be a horses-for-courses and personal preferences thing to me. -- *=( http://www.thedailymash.co.uk/ *=( For all your UK news needs.
First
|
Prev
|
Pages: 1 2 3 4 Prev: Building TeX Live on -current Next: seamonkey 2.0.3 upgrade on 12.2 |