LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Tar command copied multiple times? (https://www.linuxquestions.org/questions/linux-general-1/tar-command-copied-multiple-times-254002/)

cbriscoejr 11-12-2004 08:57 AM

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

jailbait 11-12-2004 02:09 PM

" --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


All times are GMT -5. The time now is 11:19 AM.