- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Backup using TAR
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
04-07-2003 10:04 AM
04-07-2003 10:04 AM
I want to backup some directories using tar and bzip2. In my tape I should have 04_07_03.bz2 where 04_07_03 is the backup date. In this file I should have all the directories that I want to backup, for example /dir1, /dir2 and /dir3. If I have disk space I should copy each directory to /temp then compress /temp and then put on the tape, but I do not have space in my disk, so I want to do it using just one command line and with no need of /temp directory, so I have to put it directly on the tape, like:
tar cjvf /dev/nst0 /dir1 /dir2 /dir3, but using it I can not put the name in the file and I need it to indicate the backup date.
Any ideas ?
Cheers,
Mauro
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 10:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 10:21 AM
04-07-2003 10:21 AM
Re: Backup using TAR
It works but the file you called "tarname" would be in my disk not on the tape. This is the problem, after what you said I should do a tar cvf /dev/nst0 tarname to put on the tape, but I do not have disk space to create the "tarname" file. Do you undestand my problem ?
Cheers,
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 10:28 AM
04-07-2003 10:28 AM
Re: Backup using TAR
while creating the tar bzip file, wouldn't writing to stdout and then redirecting that to the tape device help?
i haven't tried this ever. so i might be silly in asking this question.
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 10:59 AM
04-07-2003 10:59 AM
Re: Backup using TAR
can you explain to me how if the /dev/nst0 is your final tape file, you can create another file with the date as a name? maybe you could create another tape file /dev/`$tapename` using mknod and then write to that?
Would that help either?
So tell me, once you write to tape, the next time around when you mount the tape device, still the tape name would be /dev/nst0 isn't it?
Initially i thought that you were avoiding creating an intermediate tar file before creating the zip file.
or else, stick labels on the tapes to show the date of backup ;-))) i know i am asking for some good kicks in the back if i suggest this...
- ramd.