LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 09:57 AM   #1
cbriscoejr
Member
 
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 60

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, 03:09 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,373

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

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

All times are GMT -5. The time now is 09:33 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