- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tape backup
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
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
01-24-2006 10:49 PM
01-24-2006 10:49 PM
I am new to HP-UX and request your help.I want take backup of application logs to tape and to restore them when I need.
Please tell the commands to take backup to tape and restore to same folder.Tape is DDS4.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2006 10:55 PM
01-24-2006 10:55 PM
SolutionThere are so many option with you
1. tar
2. cpio
3. fbackup
4. dd
The easiest and most commonly used is tar
TO Backup use
#tar -cvf /dev/rmt/xmn ./path_to_directory
To Display contents of tape
#tar -tvf /dev/rmt/xmn
To Restore to alternate location use in that directory
#tar -xvf /dev/rmt/xmn .
man tar for deails./dev/rmt/xmn is your tape device file.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2006 10:56 PM
01-24-2006 10:56 PM
Re: Tape backup
I recomend you to use SAM (System Adm. Manager). Just type sam:
#sam
And go to Backup and Recovery -> Interactive Backup and Recovery -> [select yout tape drive] -> Back Up Files Interactively... -> Choose you backup scope...
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2006 10:58 PM
01-24-2006 10:58 PM
Re: Tape backup
# mt -f /dev/rmt/
Backup
# tar -cvf /dev/rmt/
Recover - Testing
# tar -tvf /dev/rmt/
Recover
# tar -xvf /dev/rmt/
See tar man page on EXAMPLES part.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2006 10:59 PM
01-24-2006 10:59 PM
Re: Tape backup
tar cvf /dev/rmt/0m dir
where /dev/rmt/0m is your tape drive (you may want to check this) and dir is the full path of the directory containing the logs (without a leading / - e.g. if you want to back up /var/adm/syslog you would put var/adm/syslog).
The cvf is:
c = create
v = verbose (echo to screen)
f = file (device receiving the backup).
To restore you would type the same command except you would replace the c with an x (extract).
For greater reliability you may want to use a proper backup product such as Data Protector - an HP product that provides much greater flexibility than tar.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2006 11:18 PM
01-24-2006 11:18 PM