Virtualmin Scheduled Backups - Command to run after backup - not working

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

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.

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.

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

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.

That's actually intentional .. the pre and post commands are only supposed to be run for scheduled backups.