Version 1.39


CMD_API_ADMIN_BACKUP for API implementation of CMD_ADMIN_BACKUP Admin Level -> Admin Backup/Transfer For the Users table (list of all users on the system), use the show all users cache: -------------------------------- List files in set directory (either local path or ftp, whatever is set) and view current backup crons: CMD_API_ADMIN_BACKUP with no options. returns: location=/home/admin/admin_backups (path to where the list of files is taken from) or location= num_files=123 representing the number of files that were found at that location. The list of files starts at 0, until num_files-1, eg: files0=user.admin.bob.tar.gz files1=user.admin.fred.tar.gz any ftp re-errors will be set into the filesX variables, so check them to ensure they're valid filenames. As well, the cron data is returned: cron1=info cron2=info ... where the # next to cron is the cron ID number. It is not sequential, even though it may appear to be. Don't assume it counts up from 1.. scan each variable for all that start with "cron". Then the number next to it will be the cron ID number. The info beside each cron is a url encoded list of all cron settings for that ID, with the ftp_password removed. local_ns=yes|no message=yes|no -------------------------------- Create a backup, or create cronjob: CMD_API_ADMIN_BACKUP action=create Instead of documenting every setting, please run DA in debug mode, execute a backup through the browser and note the variables output to the console. -------------------------------- Restore Backups: CMD_API_ADMIN_BACKUP action=restore as with the action=create, please run DA in debug mode for the full list of variable passed to DA with a browser. -------------------------------- Delete a backup cron CMD_API_ADMIN_BACKUP action=delete select0=123 (backup id) (select1=456) -------------------------------- Modify a cron: CMD_API_ADMIN_BACKUP action=modify see debug mode output (id=293) Should be similar to cron creation. -------------------------------- Save a backup setting: CMD_API_ADMIN_BACKUP action=setting message=yes|no #send a message when backup has finished. If "no", message will only be sent if there is a backup error. local_ns=yes|no #if yes, the local ns1/ns2 values are used. If no, the ns1/ns2 values from the backups are used.

Interested to try DirectAdmin? Get a 30-day Free Trial!