LinuxQuestions.org
Help answer threads with 0 replies.
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 11-12-2004, 08:57 AM   #1
cbriscoejr
Member
 
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 47

Rep: Reputation: 15
Question Tar command copied multiple times?


Has anyone seen this before? I was executing a tar in a batch mode and it copied all the files in the $FILE 4 times.


find / -fprint $FILES
cd /
tar -cvPj -T $FILES -f $BACKUPDEV \
--exclude=/proc* \
--exclude=/dev* \
--exclude=/tmp* \
--exclude=/var/lock* \
--exclude=/var/state* \
--exclude=/db2dat* \
--exclude=/usr/data* \
I redirected to a file (.log and 2>.err) and when I run a grep on any file which was copied (on the .log) returns 4 occurances

I am running CentOS 3.1
tar-1.13.25-13
 
Old 11-12-2004, 02:09 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,527

Rep: Reputation: 177Reputation: 177
" --exclude=/usr/data* \"

Do you really have a continuation on the last line of the command or is that a typo? If that \ is really on the command then your problem could be caused by whatever the next line adds to the tar command.

------------------------------
Steve Stites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Konqueror opens multiple times sploit Linux - Newbie 18 07-14-2007 08:11 AM
same email, multiple times ?? (exchange... sorry) itsjustme General 1 01-14-2005 02:33 PM
Unable to Access Database Multiple Times tjherman Linux - Software 0 10-25-2004 11:17 AM
running wget multiple times quickk Linux - Newbie 1 09-16-2004 06:53 AM
The 'modified times' of files and folders is reset when copied from windows to linux? crazyswede Linux - Newbie 7 03-02-2004 08:53 AM


All times are GMT -5. The time now is 11:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration