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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduled Script to backup onto tape

Status
Not open for further replies.

KOG

MIS
Jan 31, 2002
303
GB
Hi folks,

Is there a crontab script to copy backup contents onto tape over the night? As I have noticed when I am performing backups onto the tape, the overall system performance degrades.

Cheers

K
 
K, you should be able to write your own script using something like consecutive ufsdump commands. If you're going to backup things like Oracle, you'll probably be well advised to shutdown your instances whilst the backup takes place. Post back if you need advice on how to construct such a script. Regards.
 
Oops, sorry - didn't realise I was in the AIX forum. ufsdump therefore not an option!
 
Hi

Basically, I do online oracle backups but would like to copy this backups onto tape for safe keeping so therefore need shell script to do the task, any suggestions or experience would be greatly appreciated.

Cheers

K
 
hi

when you do a warm backup of the tablespaces , you probably already know this , it just puts a freeze on the tabalespaces , so you have to backup the datafiles onto tape . you can put individual tablespaces in backup mode
and back them up separately OR you can put all tablespaces in one filesystem and put all of them in backup mode and then backup the filesystem.

You can use the backup command to backup the filesystem or files

HTH
 
Hi

I dont think I am explaining this well, basically the situation is I have a scheduled script to run every night doing logical backups (export) and hot backups, the backups are then stored in a separate filesystem /backup for both logical and physical backups.

What I would like to do is to have TWO backups for safe keeping - one copy on server and another copy on tape but I have found by copying them onto tape during the day i.e. system operating hours it degrades the performance of the whole system so ideally it would have to be done over night.

So I wonder is there a script to copy the backup files onto tape (from /backup filesystem etc)?

Cheers

K
 
I am doing something similar manually now. Tar will not work w/ files over 2 Gig so I am using a backup of the dir to tape. This should work in a script or cron as well.

find . -print | backup -iq -f /dev/rmt0.1

This also allows me to stop the tape after each backup and continue copying later for multiple backups.

Regards
 
Hi mcridercoach,

Many thanks for the tip, will give it a go later.

Cheers

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top