Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scheduled backups

Status
Not open for further replies.

mlowe9

Programmer
Apr 3, 2002
221
US
Would anyone be willing to share with us instructions on how to set up a scheduled backup?

I am an AIX guy, and a vendor who sold us this DEC box wants to charge us a fat load of $$$$ to set it up for us. I know with AIX, setting up a backup is a matter of one line in one file (cron).

I can only assume it's this simple for DEC. We have zero experience or knowledge of DEC, but a basic knowledge of UNIX.

We do know how to do a manual backup, but would like to get it on a schedule, so that the only work is changing the tape daily.

Any help is appreciated!
Matt
 
Sorry - I forgot to say we are on digital Unix v4.0G
 
schedule your backup thru cron - as you would do with AIX. cron is the same on Unix O/S, but you will have to remember there are differencies in the type of shell (bsh , ksh etc) that the backup jobs uses as cron uses the standard shell.
 
I knew the cron part, I don't know how to get the command I need to put in cron. Can you help with that?
 
You use cron to shell (run) scripts or commands.
You will nedd to create a script to run the backup.
Script could use standard Unix commans (eg, tar ,dump)
Example of cron entry to run backup script -
0 20 * * 1-6 /usr/sbin/backup.sh
 
Thanks for responding.

I don't think I'm communicating what I need to know. On our AIX server, we use a program called sysback to do our backups, and our cron entry for this is:

00 19 * * * sysback -f/dev/rmt0 -x -T' chrp' -k' mp' 'backupvg hcivg util'

I don't know what the command is I need to put where I have sysback (and all it's arguments). Our vendor showed us how to do it menu-driven, but not the shell-command. If you can give me a shell-command with syntax on how to do a backup, I'm sure we can figure out the correct args for what we want to do.
 
Sysback is an AIX add-on utility ( part of Tivoli ) that must create a system backup of sorts.
There is no standard utility on Tru64 to do this.

Deneding on the numberamd size of filesystems and the type/size of backup device that you are using it would be easier to write a simple scripts to call in the 'dump' command to dump all the file systems to tape.

Or you could purchase backup software to configure (instead of creating a script) like Legato/Arcserve.
 
Can you give me an example of a simple script to call the dump command?
 
what apps are running on the server ? Any DB's ?
 
I don;t have access to Tru64 here but your script should look like this .

mt rewind -f /dev/nrmt0h (tape devive)
/sbin/vdump 0uCf /dev/nrmt0h / (root filesystem)
/sbin/vdump 0uCf /dev/nrmt0h /usr
/sbin/vdump 0uCf /dev/nrmt0h /data
etc
etc
mt rewoffl -f /dev/nrmt0h

look at the man page for the vdmp command
Ensure that the filesystem(s) data will fit onto the tape.
 
I'm working on this now, Thanks.

Can I ask what the etc's are for?
 
etc...
Other filsystems that you have that require to be in the backup.
This script will create the vdump for each filesystem as a seperate backup on the tape. (Hence the nrmt0h. n = no rewind).
I'm think that you could just issue one vdump command with all the filesystems in it. This would create only 1 backup file on the tape.
eg ,
sbin/vdump 0uCf /dev/rmt0h / /usr /data /whateverelse ...

Please check the vdump man page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top