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
Discussions
Discussions
Forums
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
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
тАО12-09-2003 01:15 AM
тАО12-09-2003 01:15 AM
tar
I have to backup two directories on the tape.
I am not sure what the commnad should be if I wanted to do it at the same time without overlaying the information.
I do have to do tar because I have got ASCii and binary files all over the place in these directories.
So here it is the Q- copying /dev and copy /home/kk
to /dev/rmt/0M and keeping the same tree- first /dev and then /home/kk.
Thanks all
I appreciate your help.
- Tags:
- tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2003 01:19 AM
тАО12-09-2003 01:19 AM
Re: tar
cd /
tar cvf /dev/rmt/0m /home/kk
When you restore, ensure you are in the / directory before you start. Don't necessarily expect the files in /dev to make any sense if you restore to another machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2003 01:24 AM
тАО12-09-2003 01:24 AM
Re: tar
You are best off using a scratch tape and putting both directories on a single tape.
tar -cvf /dev/rmt/0mn ./relativepath1 ./relativepath2
tar -cvf /dev/rmt/0m ./relativepath1 ./relativepath2
will rewind the tape at the end of the archive.
You will over write on the tape itself unless you can read to the end of the first archive tar -tvf /dev/rmt/0mn and then start where you want to. That is a pain.
I tend to put all of my needs into a tar file on the disk, gzip it and tar the zip to a tape...
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2003 01:24 AM
тАО12-09-2003 01:24 AM
Re: tar
But this syntax only copy one one directory I have to copy two directories on one tape( since I have only one tape) without overlaying two directories.
Thanks again,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2003 01:25 AM
тАО12-09-2003 01:25 AM
Re: tar
tar cvf /dev/rmt/0m /dev /home/kk
or
cd /
tar cvf /dev/rmt/0m dev home/kk
The 1st form uses absolute paths, can only be restored to the same path.
The 2nd form uses relative paths, can be restored anywhere under the current directory.
BTW, files in /dev are generally special files and may not be much use when restored - they may need to be recreated.
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2003 01:26 AM
тАО12-09-2003 01:26 AM
Re: tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2003 01:32 AM
тАО12-09-2003 01:32 AM
Re: tar
I did omit the /dev directory.
Just to clarify, you can put as many directories as you like on the command line and they will all be backed up onto the one tape, just as you like
tar cvf /dev/rmt/0m /dev /home/kk
If you do it from "/" and restore from "/" you will be absoultely fine. Unless I've made another typo :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2003 01:48 AM
тАО12-09-2003 01:48 AM
Re: tar
sorry I am being a pain but what is all that rmt/0m and rmt/0n.
should I do rmt/0n and not rmt/0m becuase it will rewinf the tape and ovelay the info.
I am paranoid too and do want to loose data.
dev was an example it is my application dierectory(/export)
Thanks so much guys.
Please clear that for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2003 01:53 AM
тАО12-09-2003 01:53 AM
Re: tar
if you do tar cvf /dev/rmt/0m /dev /home/kk, you have first /dev and then /home on the tape. The rewind takes place, after tar finishes copying the files onto tape and not before!! So you are save. And test the data with tar tv to be sure, it is correctly on the tape!!.
be happy,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2003 01:58 AM
тАО12-09-2003 01:58 AM
Re: tar
The 0mn device just means that the tape won't rewind when you have finished copying EVERYTHING. Of course this is a bit stupid for you because it will just rewind when you take the tape out so ignore all that. However, kernels patched recently enough will insist that you use the 0mn device so just go with it.
When you specify two or more directories on the "tar" command line, they all get written as one stream to the tape and none will get in the way of any others.
I find it often helps before doing anything that you are particularly nervous of, to take a deep breath and exhale slowly and possibly go on a short vacation to a tropical island. However, in this case, it really isn't necessary! Everything will be fine :)