From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078613510234.tru64-unix-managers.marc@archive.invalid> From: "szhaichi () public ! szptt ! net ! cn" Date: Thu, 05 Jun 1997 06:19:53 +0000 To: tru64-unix-managers Subject: Summary X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078613510234 Hi,everybody: My original question was: >How can I backup two different Advfs partition on one tape,what > command should I use,and how about the restore procedure? > My system is AlphaServer 2100 4/275,operating system is Digital UNIX > 3.2D,the tape driver is TLZ07. Thanks to everyone that gave me the answer of this question. Gernot Salzer Niall Madden "Nagaraja, Raja" "system PRIVILEGED account- John F. Marten" "Robert L. McMillin" Paul Kitwin BigRedDog Kevin White Santosh Krishnan x2815 Richard Eisenman The message from: Hickl Attila Hi Chi Hai we use vdump to backup our advfs-partitions. We use a shell script which will be started by the cron process: - testing the tape drive, if there is a tape inserted, and if it's writable. - dumping the partitions to tape (Fullbackup) vdump -0uf /dev/nrmtxh /dev/rzxx >> log_file vdump -0uf /dev/nrmtxh /dev/rzxx >> log_file vdump -0uf /dev/nrmtxh /dev/rzxx >> log_file ... ... vdump -0uf /dev/rmtxh /dev/rzxx >> log_file - mail the log_file to the sys_admin !!! Very important !!! use "nrmt0h" to dump your filesystems, the "n"rmt0h means, no rewind, so the tape drive, when the vdump finished to dump a partition, doesn't rewind the tape to beginning and the next partition will be appended after the first, second and so on. After the last partition you should use /dev/rmt0h, it will rewind your tape to the start. Think about, that when the crontab starts your script, that every log information should be written to a log_file. The message from : "Randy Rodgers" Chi, There are a couple ways to do this. 1. Use the "-N" option for "vdump" for the 1st fileset. This option does not rewind the tape. 2. Use the "/dev/nrmtxx" device with the "-f" option for "vdump". This is the norewind tape device. You can then use "mt -f /dev/nrmtxx" to rewind the tape after the backup is complete. The message from: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Use the norewind tape device. vdump 0f /dev/nrmt{whatever}h /file-system-1 vdump 0f /dev/nrmt{whatever}h /file-system-2 mt -f /dev/rmt{whatever}h rew For the restore use vrestore. If you're restoring sequentially through the backups, simply use the norewind tape device again. The tape will be left at the end of the current archive instead of the beginning of the next so you have skip over the file mark. vrestore rf /dev/nrmt{whatever}h mt -f /dev/nrmt{whatever}h fsf 1 vrestore rf /dev/nrmt{whatever}h The message from: "Lewis L. Lasser" I backup many ufs and Advfs filesystems using vdump and vrestore. To backup I use a script similar to dumpopt="-q -u -N -f /dev/nrmt0h" vdump -$lev $dumpopt / vdump -$lev $dumpopt /usr vdump -$lev $dumpopt /usr/local etc ... where lev is a shell variable that I set to various values (0,1,2,...) depending on two things: (1) the type of backup (daily, weekly, monthly, yearly, ...) and (2) the filesystem being backed up. To restore I usr "vrestore -i". First load the tape, then position, if necessary, with mt -f /dev/nrmt0h fsf n where n is an integer indicating which set to locate. Some examples (assuming the vdump order is /,/usr,/usr/local) to restore from / insert tape vrestore -i to restore from /usr insert tape mt -f /dev/nrmt0h fsf 1 vrestore -i to restore from /usr/local insert tape mt -f /dev/nrmt0h fsf 2 vrestore -i etc ... I have used this technique for years without problems. The vdump can even occur if some users are using the filesystem, i.e. I do not umount the filesystems before backing up. The message from: mortimer@physics.uq.edu.au You can put more than one image on a tape by using the no rewind device. Just add n to front of the device name - for example: /dev/nrmt0h or /dev/nrmt0a. If you remove a tape and then want to make other backups to the same tape you can skip over the images already on the tape using the 'mt fsf' command. By default it will skip one image but you can give a number to skip - for example `mt fsf 3' will skip 3 images and you can then place a fourth image on the tape. For restoring you just skip as many images as needed to get to the one you want using `mt fsf _n_' where you replace _n_ with the number of images to skip. Then you use vrestore to recover files from the next image on the tape. If you want to restore more than one image in succession you can use the norewind device. For more information try `man mt' The message from: "H. Blakely Williford" The command to back up with out rewinding the tape is /sbin/vdump -0uN -f /dev/rmt0h / The -N switch means norewind. The last backup you do on the tape should be done with the -N left out. This will let the tape rewind. /sbin/vdump -0u -f /dev/rmt0h /usr/users now when you wish to restore a save set from a backup that is the fourth backup on the tape you will need to fast forward the tape to that backup. This is done with the following command. mt fsf 4 play with all this frist before you put it in a trusted script. regards, Chi Hai