LinuxQuestions.org
Review your favorite Linux distribution.
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 06-23-2004, 07:33 AM   #1
dennis_89
LQ Newbie
 
Registered: Jun 2004
Posts: 27

Rep: Reputation: 15
tar options


I am running a backup script using tar. I am trying to set the option to update, but I am getting the error

tar: options 'Aru' are incompatible with '-f-'

the script I am using is:

tar uvpz $DRIVE/$TARGET_MACHINE > laptop.tar.gz
rm -rf $DRIVE/$TARGET_MACHINE

when I use:

tar cvpz $DRIVE/$TARGET_MACHINE > laptop.tar.gz
rm -rf $DRIVE/$TARGET_MACHINE

with the c instead of the u, everything works ok, it just does the full backup. Does anyone have any idea how to change this? I have already looked at the help for tar but it didn't help me.

Cheers,

Dennis
 
Old 06-23-2004, 07:50 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
did you read the man page??
http://man.linuxquestions.org/index....ction=0&type=2

Code:
man tar
 
Old 06-23-2004, 08:00 AM   #3
dennis_89
LQ Newbie
 
Registered: Jun 2004
Posts: 27

Original Poster
Rep: Reputation: 15
yup and as you can see the options are set right as tar uvpz

any other suggestions or am I missing something??
 
Old 06-23-2004, 08:35 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
redirecting the output is about the same as using f. maybe tar can't update a file. you should use something like dar.
 
Old 06-23-2004, 09:17 AM   #5
dennis_89
LQ Newbie
 
Registered: Jun 2004
Posts: 27

Original Poster
Rep: Reputation: 15
tar should be able to update though, the option is there
 
Old 06-23-2004, 09:24 AM   #6
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Dunno much about scripts, but I've used tar from tha command line and got an error when using several parameters. When I changed the order of the parametres everything went fine... might just work in your case.
 
Old 06-23-2004, 09:49 AM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
tar: options 'Aru' are incompatible with '-f-'

tar told him he can't update with f. i'm guessing you can only update with a tape, which is what tar was made for.

here's how.
http://www-es.fernuni-hagen.de/cgi-b...%20to%20update
 
Old 06-23-2004, 12:23 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Moved: This thread is more suitable in Linux General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 10:55 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 11:02 AM
Kernel 2.6.2 options question - LOCKED options ? tvojvodi Linux - General 0 02-17-2004 04:23 AM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 06:30 AM

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

All times are GMT -5. The time now is 02:17 AM.

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