Introduction
This article will cover the process of transporting backups to the remote destination manually.
Procedure
1. Find the ID of the remote destination you wish to transport to using the following API call:
whmapi1 backup_destination_list
From the output, you will want the ID that is specified by "id:"
whmapi1 backup_destination_list
---
data:
destination_list:
-
disabled:
id: $TRANSPORT-ID
name: $DESTINATION-NAME
timeout: $TIMEOUT-VALUE
type: $DESTINATION-TYPE
upload_system_backup:
metadata:
command:
reason:
result:
version:
2. Use the cpbackup_transport_file script to transport the backup:
/scripts/cpbackup_transport_file --transport $ID --upload /backup/$date/accounts/$username.tar.gz
Be sure to replace $ID with the transport id located previously, $date with the date of the backup you wish to transport, and username with the $username of the cPanel account backup you want to transfer. If you have backups configured for a directory other than /backup, you will want to be sure that you are specifying that directory.