Doing backup function integration into my system. Few questions about how ISPC backups work via API: 1. How can I trigger separately mysql or web backup via API? 2. Does the archives which was "Downloaded" ever gets removed from /backup in user home dir? 3. Is it possible to change backup name? Now when I trigger it manually it adds "manual...." keyword. 4. If I inject values into "web_backup" table like this: Code: server_id: 7 parent_domain_id: 97 backup_type: web backup_mode: rootgz backup_format: tar_gzip tstamp: 1704370204 filename: my_own_backup_name.tar.gz filesize: 24991151 backup_password: Does the ISPC system will register this as a task?
P.S. /backup folder under the user account is owned by root:root, but archives inside is under the user. Bug: user unable to delete files from /backup. Fix: chown user:user /backup
Questions: 1-2 and 4: no. q3: might be yes, check the cron plugins to see if there is any code for that. There are no API functions to initiate backups and the web_backup table does not contain backup tasks, it contains backups that have been created.
I'am still not giving up on triggering MySQL DB backup for website via API... How this HTML triggers backup process? Code: <button class="btn btn-default formbutton-default" type="button" onclick="ISPConfig.confirm_action('sites/web_vhost_domain_edit.php?id={tmpl_var name='parent_id'}&next_tab=backup&make_backup=database','{tmpl_var name='make_backup_confirm_txt'}');">{tmpl_var name="make_backup_database_txt"}</button> I have opened sites/web_vhost_domain_edit.php but can't see the part where is actions towards backups creation.