Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!mcsun!hp4nl!phigate!prle!prles2!finch!hooft From: hooft@finch.prl.philips.nl (Peter van Hooft 44327) Newsgroups: comp.sys.hp Subject: Re: HP-UX and backups Keywords: backups Message-ID: <838@prles2.UUCP> Date: 6 Jan 90 21:20:59 GMT References: <1025@prlhp1.prl.philips.co.uk> Sender: nobody@prles2.UUCP Lines: 40 pearmana@prl.philips.co.uk (Andy Pearman) writes: >I recently added a 2nd disk and moved all /users onto it leaving >the original disk just for system stuff. >I have been using HPs /etc/backup to do full and incremental dumps >which has been fine up to now. This dumps the whole fileystem, >not partitions. >However, it occurs to me that if I lost my system disk, it would be >difficult to restore the system without restoring /users (which is >mounted from 2nd disk and probably alright). You can restore the system seperately from /users, because cpio accepts a list of files/directories to restore. tcio -i /dev/backupdevice | cpio -icdmuvx .profile SYSBCKUP bin dev etc hp-ux lib system usr Alternatively, you could split the backups into system and users backups. Change your /etc/backup: backupdirs="" for arg in $* do case $arg in -archive) aflag="" # all files. aecho="archive" ;; -fsck) fflag="yes" ;; -users) backupdirs="$backupdirs users" ;; -system) backupdirs="$backupdirs .profile SYSBCKUP bin dev etc hp-ux lib system usr" ;; *) echo "usage: $0 [-archive] [-users] [-system ] [-fsck]" exit 1 ;; esac done peter