Eric Shubert schreef op 8-4-2014 18:16:
> This is making me crazy.
> Please try version 182 from the qtp subversion repo.
> I'm pretty sure I got it right this time.
> Thanks.
>
Hi Eric,
you are not the only one.
I've just test 182 and it this script don't give me the wanted result.
[root@mail qmailbkup]# ll /backup/qmailbkup
total 2315800
-rw-r--r-- 1 root root 780691347 Apr 6 00:14 201404060000-backup.tar.gz
-rw-r--r-- 1 root root 793295168 Apr 8 00:15 201404080000-backup.tar.gz
-rw-r--r-- 1 root root 204 Apr 8 20:43 201404082030-assign.tar.bz2
-rw-r--r-- 1 root root 223 Apr 8 20:30
201404082030-qmailadminpasswd.tar.bz2
-rw-r--r-- 1 root root 8764 Apr 8 20:30
201404082030-qmailcontrol.tar.bz2
-rw-r--r-- 1 root root 2258592 Apr 8 20:30
201404082030-spamassassin-files.tar.bz2
-rw-r--r-- 1 root root 46 Apr 8 20:30
201404082030-squirrelmail-plugins.tar.bz2
-rw-r--r-- 1 root root 14392 Apr 8 20:30
201404082030-squirrelmail-prefs.tar.bz2
-rw-r--r-- 1 root root 2261 Apr 8 20:43 201404082030-vpopmail.sql.gz
-rw-r--r-- 1 root root 792746759 Apr 8 20:43 201404082030-vpopmail.tar.bz2
In the home from the root user:
# ll
total 1448
-rw-r--r-- 1 root root 45 Apr 8 20:43 201404082030-backup.tar.gz
The script creates the backup command:
tar --create \
--gzip \
--file 201404082030-backup.tar.gz \
201404082030-qmailcontrol.tar.bz2 \
201404082030-squirrelmail-prefs.tar.bz2 \
201404082030-squirrelmail-plugins.tar.bz2 \
201404082030-qmailadminpasswd.tar.bz2 \
201404082030-spamassassin-files.tar.bz2 \
201404082030-vpopmail.tar.bz2 \
201404082030-vpopmail.sql.gz \
201404082030-assign.tar.bz2 \
> /dev/null 2>&1
When I change the command to:
tar --create \
--directory /backup/qmailbkup/ \
--gzip \
--file /backup/qmailbkup/201404082030-backup.tar.gz \
201404082030-qmailcontrol.tar.bz2 \
201404082030-squirrelmail-prefs.tar.bz2 \
201404082030-squirrelmail-plugins.tar.bz2 \
201404082030-qmailadminpasswd.tar.bz2 \
201404082030-spamassassin-files.tar.bz2 \
201404082030-vpopmail.tar.bz2 \
201404082030-vpopmail.sql.gz \
201404082030-assign.tar.bz2 \
> /dev/null 2>&1
I've changed the script and it's running now.
Regards,
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]