Download a local copy of a backup
The Backups service is used to create automatic and manual snapshots of your compute instances. A completed backup can be directly restored to the origin instance or to a new instance in the same data center. These workflows make it easy to revert to a working configuration if you run into any unexpected issues with your software.
Backups generated by the Backups service are not able to be directly downloaded and are intended only for restoring that backup to an instance. A common question for the service is how you can download the content from your backups to another storage location, like your home computer. This can be accomplished through the following steps covered in this guide:
- Restore a backup to a new or existing instance.
- Download any files you need from an instance or download the entire disk image.
Restore a backup
To access the data stored in a backup generated by our Backups service, you must first restore that backup to an instance . For instructions, see one of the guides below:
Restoring a backup to a new instance results in service charges for the time that instance is active.
Download files
If you wish to retain specific files or directories from your restored backup, you can download them using SFTP or SCP.
-
SFTP (Secure File Transfer Protocol): An FTP desktop client provides a graphical interface so that you can access, download, and upload the files on your remote system. Download your preferred FTP client (like FileZilla), connect using your SSH credentials, and download the files you need. Review the Transfer files with FileZilla guide for additional instructions.
-
SCP (Secure Copy Protocol): A command-line utility available on most modern operating systems. With scp, you can download and upload files or entire directories between two systems. On your local system, run the following command. Replace [user] with your Linux username, [ip-address] with the IP address or FQDN of your Compute Instance, [remote-file] with the name and path of the file (or directory) on your remote system, and [local-path] with location to which you wish to save the file locally. When prompted, enter your user's password.
scp [user]@[ip-address]:[remote-file] [local-path]
For more information, see the Transfer files With the scp command on Linux guide.
See Download fles from your compute instance for more detailed overview..
Download a disk
You can also download and retain a copy of your entire disk if needed. This saves a disk image file (.img
) on your local system that contains all of the data on your instance's disk. This disk image can later be re-uploaded to an instance . This is useful if you wish to temporarily remove your compute instance and stop further billing. Follow our Copy a disk over SSH guide for further instructions.
Alternatively, you may wish to capture an image using our paid Image service. This is generally much easier, though it results in a nominal service charge.
Delete services that are no longer needed
After you've finished downloading your files or disks, you should consider deleting the instance (if you restored to a new instance) or delete the restored disks (if you restored to an existing instance).
Updated about 1 month ago