|We moved this page to our Documentation Portal. You can find the latest updates here.
How can I find backups for this VM? Where are backups located?
OnApp 3, 4, 5 or 6
Dedicated Backup Server
1) Backups are saved on the backup server in the directory listed in Settings->Configuration->Backups/Templates. The default is
2) You will need the backup identifier. You can find it in one of three ways:
a. Navigate to the page in the interface which displays backups for your VM and append .xml or .json to the URL.
b. Check the TakeBackup or TakeIncrementalBackup log
c. Use one of the following MySQL queries:
select identifier,created_at,backup_server_id from backups where target_id=<disk #>;
The disk # can be found on the virtual machine's storage page. (http:// your cp.net/virtual_machines/vm_identifier/disks)
select identifier,created_at,backup_server_id from backups where target_id in (select id from virtual_machines where identifier='asdfasdf1234');
Replace 'asdfasdf1234' with your virtual machine's identifier.
select identifier,created_at,backup_server_id from backups where id=<backup id>;
A specific backup ID can be seen in the logs. (e.g. Backup #1234)
3) Go to the backup directory on the backup server. Let's say the identifier for your backup was 'b5r3ybmjs660bp'.
The directory where that backup is located would be something like
/onapp/backups/b/5/ The first two characters of the backup identifier are the same as the directory and subdirectory following the backup path.
If you have no backup server, backups can be found on the hypervisors or control panel server.
(Check "Where are backups stored" at the following link for more detailed information on this logic: https://docs.onapp.com/agm/latest/appliances/virtual-servers/virtual-server-backups)
If you have a large number of backup servers, the following query may be helpful:
select id,label,ip_address from backup_servers;