Hi all & anyone.
I'm trying to selectively backup up some old Apache log files before they are removed from the system (Slackware box).
Have created a file listing of what I want backed up ...
Below is a portion of the file ./selectedbkup
/usr/local/apache/logs/adventure.travel.com.au-access_log
/usr/local/apache/logs/adventure.travel.com.au-error_log
/usr/local/apache/logs/bargain.travel.com.au-access_log
/usr/local/apache/logs/bargain.travel.com.au-error_log
/usr/local/apache/logs/biz.travel.com.au-access_log
/usr/local/apache/logs/biz.travel.com.au-error_log
...and others 60 files in total.
I'm trying to execute the tar command in the following way:
# tar -cvPf /dev/nst0 -T ./selectedbkup > ./OldALogs.log 2>&1
Checking the output file OldALogs.log shows the following ...
tar: Cannot add file /usr/local/apache/logs/adventure.travel.com.au-access_log
: No such file or directory
tar: Cannot add file /usr/local/apache/logs/adventure.travel.com.au-error_log
: No such file or directory
tar: Cannot add file /usr/local/apache/logs/bargain.travel.com.au-access_log
: No such file or directory
tar: Cannot add file /usr/local/apache/logs/bargain.travel.com.au-error_log
: No such file or directory
tar: Cannot add file /usr/local/apache/logs/biz.travel.com.au-access_log
: No such file or directory
tar: Cannot add file /usr/local/apache/logs/biz.travel.com.au-error_log
: No such file or directory
Any suggestions??