Eric Shubert schreef op 7-4-2014 18:29:
> What was the error? Same?
>
> I take it doing a cd before the command and omitting --directory worked?
>
> Thanks.
>
Hello Eric,
Yes when I've change the script to:
==========
cd $backupdest
tar -C $backupdest \
-czf $backupdest/$curlfile $DATENAME-* > /dev/null 2>&1
==========
The script worked correctly.
It look like the last $DATENAME-* don't work with the tar command on
this way.
$ touch /tmp/testfile.txt
$ tar -C /tmp -czf /tmp/test.tgz testfile*
tar: testfile*: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
While it will work when I use the next command
$ tar -C /tmp -czf /tmp/test.tgz testfile.txt
There are more backup files not correct:
-rw-r--r-- 1 root root 46 Apr 7 06:35
201404070635-squirrelmail-plugins.tar.bz2
-rw-r--r-- 1 root root 46 Apr 7 06:35
201404070635-squirrelmail-prefs.tar.bz2
These to are empty tar files.
Regards,
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]