LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-24-2002, 02:13 PM   #1
bspicer
LQ Newbie
 
Registered: Apr 2002
Posts: 26

Rep: Reputation: 15
tar differences in Linux and AIX


We use to backup and restore in AIX with the following commands:

tar cvf /dev/rmt0 /myfilesystem
tar xvf /dev/rmt0 /myfilesystem

In Linux I can backup the same with the following:

tar -cvf /dev/st0 /myfilesystem

But to restore I have to use

tar -xvf /dev/st0 myfilesystem

Notice I left out the / in front of myfilesystem.

How come this happens. If I specify the /myfilesystem, it searches the whole tape and finds nothing.

Bill
 
Old 04-24-2002, 02:54 PM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
Sounds like you want the -P option.
Quote:
-P, --absolute-paths
don't strip leading `/'s from file names
--jeremy
 
Old 04-24-2002, 03:52 PM   #3
bspicer
LQ Newbie
 
Registered: Apr 2002
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks. Curious, why would you not want absolute paths. I'm not understanding why linux strips the leading.

Thanks.
 
Old 04-25-2002, 06:16 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well say you archive your /home. If you go over to the /tmp directory and tell it to extract the archive then it will overwrite the original /home instead of creating a new /tmp/home.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
Differences between Linux distributions ryedunn Linux - Newbie 2 10-28-2004 10:15 AM
differences+between+mainframe+cobol+and+AIX+cobol+data+type ssrividhya AIX 1 08-09-2004 09:13 AM
System hangs in update of AIX from 4.3.3 to AIX 5.2 jmurray67 AIX 2 07-25-2004 08:25 PM
Linux Distros Differences thesoccerking Linux - Distributions 3 05-19-2002 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration