Submitted by ice on Wed, 02/08/2012 - 14:51
Hi,
I've setup a Virtualmin Scheduled Backup and I've set a command to run after backup.
It seams this command is not working.
I did the same think and everything is working fine for Webmin Scheduled Backups, mysql and postgesql backups.
Please check and fix this.
Thank you!
Status:
Closed (works as designed)
Comments
Submitted by JamieCameron on Wed, 02/08/2012 - 17:05 Comment #1
Are you sure it isn't being run? You could try a really simple command like :
touch /tmp/test.txt
and see if
/tmp/test.txt
gets created after the backup completes.Submitted by ice on Thu, 02/09/2012 - 00:39 Comment #2
Hi,
I already tried that before add this post.
I am using the last version of virtulamin on the CentOS 6.2 with everything updated to the latest versions of repositories.
Please try this on your side and let me know if is working.
Thank you.
Submitted by JamieCameron on Thu, 02/09/2012 - 13:28 Comment #3
Are you letting the scheduled backup run in the background, or are you triggering it from within the Virtualmin UI?
Also, does the backup complete successfully, or do some domains fail?
Finally, in the backup report email, do you see lines like :
Running post-backup command ..
.. done
Submitted by ice on Fri, 02/10/2012 - 06:33 Comment #4
Hi,
I just rechecked again. It seams is working when I run the backup in background and when is runned from cron job.
Is not working only when I run by pressing Backup Now button from Virtualmin UI.
But, I saw that, there is no post/pre command options.. so, I guess this is fine.
Thank you for your help.
Submitted by JamieCameron on Fri, 02/10/2012 - 13:05 Comment #5
That's actually intentional .. the pre and post commands are only supposed to be run for scheduled backups.