- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Backup Script - any ideas
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 01:52 PM
08-22-2002 01:52 PM
Backup Script - any ideas
1. I am sending a list of files to be tar'ed to disk then gzip this tar ball.
2. I then use dd or maybe cpio to copy the file to tape
Now what I need to do next is to put EOF stamps on the tape, maybe reserv the tape drive till the next job run.
This is a stand alone tape drive, that I need to automate. but dont want to overwrite files. the tape loaded will be able to take tar files for each day of the week, untill it needs replacement.
What I, need to find out if anyone has done a similar project either in KSH or Perl (these are my languages of choice) to help me under stnad how to eof stamp the tape after the file is copied to the tape, and then reserve the tape till tomorrow and then release it just before the next backup. ???
sound confusing - see attached KSH script - the eof, release and reserve functions is not complete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 02:00 PM
08-22-2002 02:00 PM
Re: Backup Script - any ideas
Hi Donny,
Possibly use the non-rewind device?
i.e.
/dev/rmt/0mn
This will mark an EOF for you.
I would be wary of using the words compile and script in the same question. You'll get all these C programmers throwing all sorts of things at you! :-)
Cheers,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 02:18 PM
08-22-2002 02:18 PM
Re: Backup Script - any ideas
OK, being serious now.
I had a look at the script and it is pretty straightforward.
I would use the no-rewind device (which will hold the tape at the point the last backup ends). Also I would put in the script a static variable for the size of the tape you are using, and possibly the compression ratio of the gzip command (by testing). From here you could work out when a tape will need to be changed by the operators?
I don't think you can reserve a drive in a non-shared environment i.e. not on a SAN. (use the st command to do this on a SAN.
Hope this is a bit more help.
Cheers,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 06:31 AM
08-23-2002 06:31 AM
Re: Backup Script - any ideas
again thanx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 06:41 AM
08-23-2002 06:41 AM
Re: Backup Script - any ideas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 08:43 AM
08-26-2002 08:43 AM
Re: Backup Script - any ideas
mt -f /dev/rmt/0 non-rewind
mt -f /dev/rmt/0 no-rewind
mt -f /dev/rmt/0 norewind
none of them work.
checked the man 7 mt pages, there is no non-rewind or no-rewind
>>?????????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 09:38 AM
08-26-2002 09:38 AM
Re: Backup Script - any ideas
Nm - rewind,best-density
Nmn - norewind,best-density
Nmb - Berkeley-stlye, best density
Nmnb - dest-density, no-rewind, Berkeley-style
It's the device node that you choose.
Man 7 mt for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 09:38 AM
08-26-2002 09:38 AM
Re: Backup Script - any ideas
# ls -l /dev/rmt/*n
crw-rw-rw- 2 bin bin 205 0x005040 Aug 14 2001 /dev/rmt/0mn
crw-rw-rw- 2 bin bin 205 0x046040 Aug 13 2001 /dev/rmt/1mn
crw-rw-rw- 2 bin bin 205 0x005040 Aug 14 2001 /dev/rmt/c0t5d0BESTn
crw-rw-rw- 1 bin bin 205 0x005041 Aug 13 2001 /dev/rmt/c0t5d0DDSn
crw-rw-rw- 2 bin bin 205 0x046040 Aug 13 2001 /dev/rmt/c4t6d0BESTn
#
NOT
/dev/rmt/0
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 10:07 AM
08-26-2002 10:07 AM
Re: Backup Script - any ideas
Primarily, before every backup routine, I to a fast forward of the tape to the last EOD mark.
mt -t /dev/rmt/0mn eod
This is the safety.
Some of your functions are kind of futile. There is no tape lock, nor unlock.. So, the safest thing to do is eject the tape between runs, and make sure your tape is at the end of file mark when you restart the backup.
Last piece of advise for tar backups... It's hard to list the files. What I would do is make a text file and include it with your tarball listing the tarball's contents. Simple to do, and yet gives you a fast way of finding what you need.
Regards,
Shannon