• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Execute script at the end of backup task

fabkim

New Pleskian
Hi,

I want to execute a sciript file at the end of a backup task.
There is no option to do that in the plesk desktop, so is ther a way to do that ?

Thanks
 
Hi, thank for your answer.
I 'm out of the office so i can only say by memory.
In my memory, in the event manager, there is nothing talking about backups. I can post the select content later .
Or May be is it managed on other Event name?
 
Hi,
here is the list of events in the event manager selector :

Additional administrator account created
Additional administrator account deleted
Additional administrator account updated
Additional FTP account created
Additional FTP account deleted
Additional FTP account updated
Additional license has expired
Administrator's preferences updated
Administrator information updated
Application added to reseller account's application pool
Application removed from reseller account's application pool
Customer's interface preferences updated
Customer account created
Customer account deleted
Customer account status updated
Customer account updated
Customer GUID updated
Database created
Database removed
Database server created
Database server deleted
Database server updated
Database user account created
Database user account removed
Database user account settings updated
Default domain (the first domain added to a subscription) created
Default domain (the first domain added to a subscription) deleted
Default domain (the first domain added to a subscription) updated
Default domain, alias created
Default domain, alias deleted
Default domain, alias updated
Default domain, DNS zone of domain alias updated
Default domain, DNS zone updated
Default domain, GUID updated
Default domain, status updated
Disk space limit for reseller account reached
Disk space limit for subscription reached
Disk space usage on subscription updated
DNS zone of a domain alias updated
DNS zone of a subdomain under the default domain was updated
DNS zone of a subdomain updated
Domain alias created
Domain alias deleted
Domain alias updated
Domain created
Domain deleted
Domain DNS zone updated
Domain GUID updated
Domain status updated
Domain updated
Extension installed
Extension status updated
Extension uninstalled
Extension upgraded
Firewall enabled / disabled
IP address created
IP address deleted
IP address updated
License key updated
Mail account created
Mail account deleted
Mail account updated
Mailing list created
Mailing list deleted
Mailing list updated
Physical hosting created
Physical hosting deleted
Physical hosting updated
Plesk component updated or added
Plesk user failed to log in
Plesk user failed to log in through API
Plesk user logged in
Plesk user logged out
Remote DNS server status updated
Reseller's interface preferences updated
Reseller's IP pool updated
Reseller account created
Reseller account deleted
Reseller account limits updated
Reseller account permissions updated
Reseller account status updated
Reseller account updated
Reseller GUID updated
Reseller plan created
Reseller plan deleted
Reseller plan updated
Server health status changed
Service plan of administrator created
Service plan of administrator deleted
Service plan of administrator updated
Service plan of reseller created
Service plan of reseller deleted
Service plan of reseller updated
Service plan of subscription changed
Service restarted
Service started
Service stopped
Session settings updated
Standard or frame forwarding hosting created
Standard or frame forwarding hosting deleted
Standard or frame forwarding hosting updated
Subdomain created
Subdomain deleted
Subdomain of a default domain created
Subdomain of a default domain deleted
Subdomain of a default domain updated
Subdomain updated
Subscription limits updated
Subscription owner changed
Theme skin updated
The Plesk license has expired
Traffic limit for reseller account reached
Traffic limit for subscription reached
Traffic usage on subscription updated
Update available
Update installed
Web application added to customer account's application pool
Web application installed
Web application reconfigured
Web application removed from customer account's application pool
Web application uninstalled
Web app upgraded
Web user account created
Web user account deleted
Web user account updated
WordPress installed
WordPress registered
WordPress uninstalled

This list semme to be the same of the official one, and for me there is nothing about backup, but i never used the event manager, so may be im wrong.

Can you help me ?
 
Last edited:
Thanks Igor,

But i'm in same case of JulianP, i can't put all sites offline during backup task.

Another solution is to execute backup by crontab. In this case, i must find a command line that create a complete server backup, Plesk compatible.
My actual task is :
- Incremential backup
- Run daily
- Make full backup each week
- Keep files for 4 weeks
- Backup all (domains, mails setting+data, files+DB)
- Store in /var/lib/psa/dumps

So is there a way to make this backup via command line ?

Thanks
 
I found this command line in Plesk documentation :

plesk bin pleskbackup server

If i use it on sunday for exemple, and the same with --incremental option on other days, did it make same job than by Plesk interface ?
 
Hi,
I will use these commands for complete and incremental backups
plesk bin pleskbackup server --prefix="xxxxx" --description="xxxxx" --exclude-logs
plesk bin pleskbackup server --prefix="xxxxx" --description="xxxxx" --exclude-logs --incremental

Do you think they are equals to plesk admin => tools and settings => backup manager ? I'm talking about datas backed up (except logs). I know i must create the cron
 
Do you think they are equals to plesk admin => tools and settings => backup manager ? I'm talking about datas backed up (except logs). I know i must create the cron
Yes, it looks the same.
 
Back
Top