Greetings all -
I am working on a way to query the servers remotely so I can know when a backup has completed. This way I can rsync my /backup/ folder by pulling instead of pushing it from the server. The goal is to make the backup server inaccessible from the cPanel server.
Which leads me to my question... in the /scripts/postcpbackup script, how can I know if the backup was successful or if it failed? I would like to script it such that the "OK to download" indicator isn't there if something went wrong and the cpbackup ended in failure. Is there a command I can run to know the last cpbackup ending status? Or is there a way to know inside the /scripts/postcpbackup script if the backup was successful?
Thanks!
Bob
I am working on a way to query the servers remotely so I can know when a backup has completed. This way I can rsync my /backup/ folder by pulling instead of pushing it from the server. The goal is to make the backup server inaccessible from the cPanel server.
Which leads me to my question... in the /scripts/postcpbackup script, how can I know if the backup was successful or if it failed? I would like to script it such that the "OK to download" indicator isn't there if something went wrong and the cpbackup ended in failure. Is there a command I can run to know the last cpbackup ending status? Or is there a way to know inside the /scripts/postcpbackup script if the backup was successful?
Thanks!
Bob
Last edited by a moderator: