Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 11-12-2004, 08:57 AM   #1
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
Old 11-12-2004, 02:09 PM   #2
LQ Guru
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,893

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
" --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


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 > Forums > Linux Forums > Linux - General

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

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