Post by Herman ViaenePost by WaynePost by Herman ViaeneStill learning a lot.....
On the "other OS" I often used the "xcopy /m" command to keep a backup of
a directory somewhere on another disk on the same machine.
I wonder what the Linux equivalent of that could be. I found rsync, but
none of its possibilities is a good match - as far as I understood all of
it. In particular I do not get what the command does on subsequent runs
(i.e. where most of the files/directories already exist at the
destination).
Any suggestions?
http://www.yolinux.com/TUTORIALS/unix_for_dos_users.html
Wayne
I'll answer on your and Donalds and Lordy's post in this one.
I bookmarked the link above, I think it can come in handy in future, tx.
Rsync just copies "differences" as Lordy states, but that is just my
question, what are differences, how does it define that?
As far Donald's remark, it is a valuable thing to know that rsync removes
files in the backup. But I am not sure that this is an advantage. Sure it
takes away the necessity of checking and removing "rubbish", but I feel not
quite confident. I've see, to often in the past people deleting files and
only realizing a few days later this was a mistake. If rsync was run in the
mean time (via a cron entry for instance), the files are definitively lost.
I'll have to check whether rsync's options can avoid this.
Tx anyway.
Yes, it could be dangerous, but do note it is an *option* to do the
deletes. The default is not to. Used correctly rsynch is safer that
xcopy as it actually checksums the files to make the copy/no copy
decision. Xcopy simply checks the archive bit, which has a couple of
problems. For example, you can defeat it by manually reseting that bit,
or, if you use the xcopy reset, you cannot do the xcopy to more than one
place. I always used the /d xcopy option for that reason.
I agree with your point that often one removes files, and only realizes
later that it was a mistake, and over-writing backups ... well, it is
quite dismaying to discover a large chunk of code you have not worked on
for six months is *gone*, from *everywhere*.
I tend to do cleanups about every three months, but only after I have
done a permament hard copy backup for my archives. I do that to DVD now,
but use to do it to tape. I use rsynch for daily "oh damnit" problems,
and updating things like libraries on other machines.
What I would like to find is a program that divides 40-50 gigs of files,
all under 4 gigs, into sets that will fit on single DVDs.
Donald