Using backup storage on a dedicated server
Find out how to enable and access your additional storage space
Find out how to enable and access your additional storage space
Last updated 15th March 2021
OVHcloud dedicated servers include additional backup space to store important data and configuration files. This space is scalable, secure and independent of the main server.
This guide explains how to enable and use your storage space.
We recommend to consult the product page as well for further details about the service.
Note that this guide is not applicable for OVHcloud US services.
This feature might be unavailable or limited on servers of the Eco product line.
Please visit our comparison page for more information.
Log into your OVHcloud Control Panel. Switch to the Bare Metal Cloud
section and select your server from Dedicated Servers. On the Backup storage
tab, click the Enable backup storage
button.
Click the Confirm
button in the popup window.
Your backup storage will be configured within a few minutes. A confirmation email will be sent as soon as it is ready.
Access to the backup storage is restricted by IP address according to an access control list (ACL). Only IPs linked to your OVHcloud customer account will be able to access the storage, once they are whitelisted in the ACL. The access protocols (FTP, NFS and CIFS) are not authorised by default but have to be selected when adding IP addresses.
Log into your OVHcloud Control Panel. Switch to the Bare Metal Cloud
section and select your server from Dedicated Servers. On the Backup storage
tab, click on the button Add an access
.
You will then need to select the IP block that you want to authorise. After selecting the IP block, select the protocol(s) for the access, and click the Next
button.
Only IP blocks in your OVHcloud customer account can be added to the ACL from your Control Panel.
Confirm by clicking on Finish
. You will now be able to access your server's backup storage from the IP block you have selected.
Once the service is enabled, your ACL table will be displayed in the Backup storage
tab. Click on ...
in the row of an IP block to open the access menu.
To change the protocols for an authorised IP block, click on Modify the access
and select/deselect protocols in the popup window. Save the changes by clicking on Confirm
.
To revoke authorisation for an IP block, click on Delete the access
and then on Confirm
in the popup window.
Access to the storage space of your dedicated server is restricted to IP addresses linked to your OVHcloud customer acccount.
In order to add other IP addresses from which to access, you can use the OVHcloud API. This will allow you to retrieve your backup data from a different service.
Only OVHcloud IP addresses can be authorised.
Log in to api.ovh.com and use the following call:
Fill in the fields as follows:
serviceName
: The service name of your servercifs
: check if necessaryftp
: check if necessaryipBlock
: enter the IP address that will have access in the form 1.2.3.4/32
nfs
: check if necessaryTo verify that your IP address is authorised, use the following call:
Log into your OVHcloud Control Panel. Switch to the Bare Metal Cloud
section and select your server from Dedicated Servers. On the Backup storage
tab, click on the button Forgotten your password?
.
If you click on Confirm
in the popup window, a password recovery email will be sent to the email address of your admin contact. Follow the instructions in the email to reset your password.
Log into your OVHcloud Control Panel. Switch to the Bare Metal Cloud
section and select your server from Dedicated Servers. On the Backup storage
tab, click on the button Delete backup storage
.
If you click on Confirm
in the popup window, the backup storage will be disabled within a few minutes. All data on the storage space will be deleted.
Log into your OVHcloud Control Panel. Switch to the Bare Metal Cloud
section and select your server from Dedicated Servers. On the Backup storage
tab, click on the button Order disk space
.
Select the additional storage capacity you would like to order and then click on the Next
button.
Take note of the pricing and contract information in the next window and click on Confirm
.
An order will be created and once your payment has been processed, you will be notified about the successful expansion of the space.
The backup storage service does not automatically back up your data, it only provides the space and the access protocols. It is your responsibility to implement an adequate backup strategy using the tools of your choice.
To save individual files to your backup storage, you can use the following command:
# ncftpput -u FtpUserName -p FtpPassword HostName /FolderLocation /File
Please note that this command does not support the FTPS protocol. If you need secure transfer you should use lftp or curl instead.
The code example above contains variables, which you will need to substitute with your own values.
Backing up a folder is done by creating a folder archive, and then uploading it all with one command:
# tar czf - /FolderName | ncftpput -u FtpUserName -p FtpPassword -c HostName ArchiveName.tar.gz
The code example above contains variables, which you will need to substitute with your own values.
To download an archive file from your backup storage, you can use the following command:
# ncftpget -v -u FtpUsername -p FtpPassword HostName /LocalFolder /File
The code example above contains variables, which you will need to substitute with your own values.
To use FTPS you must change the hostname of the backup storage. For example, if the name of your backup storage is ftpback-rbxX-YYY.ip-Z.Z.Z.Z.net, you need to change it to ftpback-rbxX-YYY.mybackup.ovh.net. You also need to add the -ssl flag to the commands below.
To save individual files to your backup storage, you can use the following command:
# curl -aT File ftp://FtpUsername:FtpPassword@HostName/FolderLocation
The code example above contains variables, which you will need to substitute with your own values.
Backing up a folder is done by creating a folder archive, and then uploading it all with one command:
# tar czf - /FolderName | curl ftp://FtpUsername:FtpPassword@HostName/FolderLocation/ArchiveName-$(date +%Y%m%d%H%M).tar.gz -T -
The code example above contains variables, which you will need to substitute with your own values.
To download an archive file from your backup storage, you can use the following commands:
# cd /LocalFolder
# curl -u FtpUsername:FtpPassword ftp://HostName/File
The code example above contains variables, which you will need to substitute with your own values.
lftp uses FTP+SSL/TLS by default. So you must change the host name of the backup storage. For example, if the name of your backup storage is ftpback-rbxX-YYY.ip-Z.Z.Z.Z.net, you need to change it to ftpback-rbxX-YYY.mybackup.ovh.net.
To save individual files to your backup storage, you can use the following command:
# lftp ftp://FtpUsername:FtpPassword@HostName:21 -e "cd FolderLocation; put File; quit"
The code example above contains variables, which you will need to substitute with your own values.
Backing up a folder is done by creating a folder archive, and then uploading it all with one command:
# tar czf - /FolderName | ftp://FtpUsername:FtpPassword@HostName:21 -e "cd FolderLocation; put /dev/stdin -o ArchiveName-$(date +%Y%m%d%H%M).tar.gz;quit"
The code example above contains variables, which you will need to substitute with your own values.
To download an archive file from your backup storage, you can use the following commands:
# cd /LocalFolder
# lftp ftp://FtpUsername:FtpPassword@HostName:21 -e "get /File; quit"
The code example above contains variables, which you will need to substitute with your own values.
After installing FileZilla on your server, you can configure it to connect to your backup storage using the FTP credentials that were emailed to you when you activated the Backup storage. To connect successfully, you will need the host name and password of your Backup storage.
First make sure that you have authorised your IP blocks to access the storage and use the NFS protocol. Depending on your Linux operating system, you might have to install the NFS client and start the NFS/portmap service.
Once you have the NFS client installed and portmap running, you can mount the NFS share like a normal partition as shown below:
# mount -t nfs HostName:/export/ftpbackup/ServiceName /FolderMount
The code example above contains variables, which you will need to substitute with your own values.
Once the share is mounted, you can use commands like cp and rsync like on a normal directory.
Log on to your server, open the command prompt, and type the following command:
net use z: \\HostName\ServiceName
The code example above contains variables, which you will need to substitute with your own values.
Establish an SSH connection to your server, and type the following command:
# mount -t cifs -o sec=ntlm,uid=root,gid=100,dir_mode=0700,username=root,password= //HostName/ServiceName /mnt/FolderMount
The code example above contains variables, which you will need to substitute with your own values.
Join our community of users on https://community.ovh.com/en/.
Please feel free to give any suggestions in order to improve this documentation.
Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.
Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.
Thank you. Your feedback has been received.
Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.
Discuss with the OVHcloud community