if you read the man pages for your particular backup command they offer a common backup stratigy.
Personaly. I find it much easier to do a level 0 dump every night.
We are a 24/7 shop.
Code:
solaris backup script
$ cat /var/adm/scripts/backup.ksh
for i in / /home0 /home1 /home2 /home3 /home4; do
/usr/sbin/ufsdump 0uf /dev/rmt/0n $i
done
mt rewoffl
Code:
AIX backup script
$ cat /var/adm/scripts/backup.ksh
#! /bin/ksh
#
# This script is intended to be used on AIX 4.3.3 and 4.3.2 ONLY.
# This will use the backup utility doing a level 0 dump on any filesystem defined for $filesys and update /etc/dumpdates.
# Arguments:
# DEVICE = <backup device> rmt0 = rewinding rmt0.1 = non-rewinding
# DUMPINFO = <file that will collect info to be emailed out>
# MARK = <possition on the tape>
#
DEVICE="/dev/rmt0.1"
DUMPINFO=/tmp/dumpinfo
FILESYSTEMS="/ /usr /var /home"
MARK=1
echo > $DUMPINFO
for filesys in $FILESYSTEMS; do
echo "Date: `date`
Filesystem: $filesys
Position: $MARK
Device: $DEVICE
" >> $DUMPINFO
/usr/sbin/backup -f $DEVICE -0 -u $filesys
MARK=`expr ${MARK} + 1`
done
cat $DUMPINFO|mailx -s "Dumpinfo `hostname`" root
sleep 20
mt -f $DEVICE rewoffl
some files systems have been omited. but you get the gist.
In our lab we are in the process of reevaluating the overall setup of our Sun workstations. I'd like to get the opinions of other system administrators on some general strategic questions:
1. If the goal is to try to guarantee identical functioning of all workstations within the lab, which... (1 Reply)
Hi,
I performed backup on tape and I want to append more files to my previous backup on the same backup tape. But before I do that I need to know the backup file size of the first backup I performed so that I know the available size on the backup tape. Can someone help me what command I will use... (0 Replies)
I am trying to make a full backup of my system using the cpio command. The Tape Unit is a SCSI DDS.
The process started fine but after about 30 minutes, it just stopped and showed the following message:
1755 Signal 31 - Core dumped
Any idea of what is causing this and how to fix it?
... (4 Replies)
I am trying to backup my .bash_history and I want to keep every version of the backup. I am thinking to put one of these in my crontab.
0 0 * * 0,3 cat .bash_history > boo
0 0 * * 0,3 cp .bash_history boo
I would like the backups to be called boo1, boo2, boo3, etc. I would like to keep... (7 Replies)
Hi Everyone,
we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment?
Thanks in adv. (0 Replies)
HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here
Im explaining the requirement of script.
AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Well.. let's say i need to write a pretty simple script.
In my script i have 2 variables which can have value of 0 or 1.
$VERBOSE
$LOG
I need to implement these cases:
($VERBOSE = 0 && $LOG = 0) => ONLY ERROR output (STDERR to console && STDOUT to /dev/null)
($VERBOSE = 1... (5 Replies)
Discussion started by: Marmz
5 Replies
LEARN ABOUT XFREE86
backup_delvolset
BACKUP_DELVOLSET(8) AFS Command Reference BACKUP_DELVOLSET(8)NAME
backup_delvolset - Deletes one or more volume sets from the Backup Database
SYNOPSIS
backup delvolset -name <volume set name>+ [-localauth]
[-cell <cell name>] [-help]
backup delvols -n <volume set name>+ [-l]
[-c <cell name>] [-h]
DESCRIPTION
The backup delvolset command deletes each volume set named by the -name argument, and the volume entries each contains, from the Backup
Database. The backup listvolsets command lists the volume sets (and their volume entries) currently defined in the Backup Database.
CAUTIONS
Deleting a temporary volume set is possible only within the interactive session in which it was created. Exiting the interactive session
also destroys the temporary volume set automatically.
OPTIONS-name <volume set name>+
Names each volume set to delete.
-localauth
Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The backup command interpreter presents it to
the Backup Server, Volume Server and VL Server during mutual authentication. Do not combine this flag with the -cell argument. For more
details, see backup(8).
-cell <cell name>
Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see backup(8).
-help
Prints the online help for this command. All other valid options are ignored.
EXAMPLES
The following command deletes the volume set called user and all volume entries in it:
% backup delvolset user
PRIVILEGE REQUIRED
The issuer must be listed in the /etc/openafs/server/UserList file on every machine where the Backup Server is running, or must be logged
onto a server machine as the local superuser "root" if the -localauth flag is included.
SEE ALSObackup(8), backup_addvolentry(8), backup_addvolset(8), backup_delvolentry(8), backup_listvolsets(8)COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 BACKUP_DELVOLSET(8)