Backing up / and /usr

From: H. Blakely Williford <blakew_at_mlm.fuller.com>
Date: Wed, 5 Jun 96 09:46:00 CDT

I created a procedure to back up our / and /usr file systems. The problem
is that when the backup runs all these Permission denied messages come up.
The errors only come up when backing up the /usr fs.

The name of the script is fbsysd38. and these are the premissions.
-rwsr-sr-x 1 root system 547 Jun 4 11:05 fbsysd38

The System Administration book said that you must have superuser privileges
to use the dump command. I did a ...
> chown root fbsysd38
> chgrp system fbsysd38
> chmod 6755 fbsysd38

is root, system not the group and user-id for the superuser?

This is the listing for fbsysd38, it is ran from the ksh.

# fbsysd38
# create a full back up of / (system pack) FS to rmt0
# to change to rmt1 change command to /sbin/vdump -0uNT1 /
# hbw 22-May-1996
#
stime="`date +"%T"`"
LFSX="`date +"%d-%b-%Y-%T"`"
echo "fbsysd38: log file is fbsysd38."$LFSX
#
# first back up the root file system -- and DO NOT rewind the tape.
    /sbin/vdump -0uN -f /dev/rmt0h / 2> fbsysd38.$LFSX
#
# now do /usr and rewind the tape.
    /sbin/vdump -0u -f /dev/rmt0h /usr 2> fbsysd38.$LFSX
#
#
echo "fbsysd38: start time " $stime
echo "fbsysd38: finish time " `date +"%T"`

+--------------------------+------------------------------------------------+
|H. Blakely Williford | Men never do evil so completely and cheerfully |
|Systems Administrator | as when they do it from religious conviction. |
|The Fuller Brush Company | - Pascal |
+--------------------------+------------------------------------------------+
Received on Wed Jun 05 1996 - 17:19:13 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT