From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d849f273c7f33f41 X-Google-Attributes: gidfee84,public X-Google-Thread: 1020c6,d849f273c7f33f41 X-Google-Attributes: gid1020c6,public X-Google-ArrivalTime: 1994-03-14 13:05:05 PST Xref: gmd.de comp.unix.admin:15154 comp.unix.osf.osf1:2542 Path: gmd.de!xlink.net!howland.reston.ans.net!pipex!sunic!columba.udac.uu.se!Krille.Update.UU.SE!Krille.Update.UU.SE!not-for-mail From: bqt@Krille.Update.UU.SE (Johnny Billquist) Newsgroups: comp.unix.admin,comp.unix.osf.osf1 Subject: Re: system backups Date: 14 Mar 1994 22:05:05 +0100 Organization: Update Computer Club Message-ID: <2m2jif$2r1@Krille.Update.UU.SE> References: <2lqinj$9h1@miracle.falconmicro.com> <1994Mar13.185126.6276@belvedere.sbay.org> NNTP-Posting-Host: krille.update.uu.se In <1994Mar13.185126.6276@belvedere.sbay.org> root@belvedere.sbay.org (David E. Fox) writes: >In article <2lqinj$9h1@miracle.falconmicro.com> you wrote: >[I emailed the poster on this one, but figured it might be of sufficient >interest to others to warrant posting.] >: I am a new unix user (coming from the VMS world) and have had 3 Alpha >: OSF 1.3 systems put into my care. I am trying to set up a good backup >: strategy but I am not really sure what is the best type of backup to do >: (dump, tar, cpio, dd, etc....). Each system has the capability to do >The biggest difference between dump and tar/cpio is that dump does an >image backup of the filesystem(s). In essence, it takes the binary state >of your hard disk partition(s) and writes that to tape. If you restore >the tape, you get (or you should get) an exact copy of that state back. >On the other hand, tar/cpio do file-by-file backups. >IMHO, tar/cpio is easier if you need to restore just one directory or >a few files from your backup. With dump, you have to restore the whole >thing. Even if you do wish to restore the whole thing, tar/cpio may >be more effective than dump because they will copy the files onto the >(new) filesystem in a (possibly) more optimal layout, but dump will just >restore the files on the disk in the state they were in when you ran >dump. Sorry, but you are wrong. restore (the companion to dump) doesn't do an image restore, but goes through the normal filesystem, so the files are rearranged with dump as well. Also, dump can also restore specific files. The one big advantage with dump is that you backup a *partition*, not a filesystem. If you want a backup of the root partition, neither cpio, nor tar will do it for you in a graceful way, dump will. The problem with dump is that if the filesystem is modified during the dump, the dump can become corrupted. So, it is recommended that the system is brought down in standalone before using dump. This is a pain. Another advantage with dump is that is is very easy for incremental backups as well. It's all in there. >I recommend using tar for full backups, and cpio for incremental backups, >because cpio accepts a list of filenames on stdin that it will backup. This >allows one to put a time-stamp file somewhere (like /etc/backup) and a >find / -newer /etc/backup would give all files newer than the time-stamp file, >which you'd pipe into cpio. IMHO, there is no real good backup program under UNIX, and if you come from VMS, you will really notice this. Johnny -- Johnny Billquist || "I'm on a bus CS student at Uppsala University || on a psychedelic trip email: bqt@minsk.docs.uu.se || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol