Using backup storage on a dedicated server

Find out how to enable and access your additional storage space

Last updated 15th March 2021

Objective

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.

Requirements

This feature might be unavailable or limited on servers of the Eco product line.

Please visit our comparison page for more information.

Instructions

Activating the backup storage

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.

Activate Backup storage

Click the Confirm button in the popup window.

Activate Backup storage

Your backup storage will be configured within a few minutes. A confirmation email will be sent as soon as it is ready.

Managing access control

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.

Adding a backup access

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.

Add backup 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.

Add backup access

Confirm by clicking on Finish. You will now be able to access your server's backup storage from the IP block you have selected.

Modifying or deleting a backup access

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.

Add backup access

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.

Accessing the backup storage from an IP address outside of your account

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 server
  • cifs: check if necessary
  • ftp: check if necessary
  • ipBlock: enter the IP address that will have access in the form 1.2.3.4/32
  • nfs: check if necessary

apiacladdress

To verify that your IP address is authorised, use the following call:

apiacladdress

Resetting 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 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.

Deleting the backup storage

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.

Ordering more disk space

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.

Add backup access

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.

Using the backup storage

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.

FTP/FTPS

ncftp (for Linux)

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.

  • FtpUsername : Your FTP username
  • FtpPassword: Your FTP password
  • HostName: The host name of your backup storage
  • FolderLocation: The path to the target folder where you want to save the file
  • File: The name of the file you want to save

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.

  • FolderName: The path to the folder you want to back up
  • FtpUsername: Your FTP username
  • FtpPassword: Your FTP password
  • HostName: The host name of your backup storage
  • ArchiveName: The name of the folder you want to back up

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.

  • FtpUsername: Your FTP username
  • FtpPassword: Your FTP password
  • HostName: The host name of your backup storage
  • LocalFolder: The path to the local folder where you want to save the file
  • File: The path to the file you want to download
Curl (for Linux)

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.

  • File: The name of the file you want to save
  • FtpUsername: Your FTP username
  • FtpPassword: Your FTP password
  • HostName: The host name of your backup storage
  • FolderLocation: The path to the target folder where you want to save the file

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.

  • FolderName: The path to the folder you want to back up
  • FtpUsername: Your FTP username
  • FtpPassword: Your FTP password
  • HostName: The host name of your backup storage
  • FolderLocation: The path to the target folder where you want to save the folder
  • ArchiveName: The name of the folder you want to back up

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.

  • FtpUsername: Your FTP username
  • FtpPassword: Your FTP password
  • HostName: The host name of your backup storage
  • LocalFolder: The name of the local folder where you want to save the file
  • File: The path to the file you want to download
lftp (for Linux)

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.

  • File: The name of the file you want to save
  • FtpUsername: Your FTP username
  • FtpPassword: Your FTP password
  • HostName: The host name of your backup storage
  • FolderLocation: The path to the target folder where you want to save the file

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.

  • FolderName: The path to the folder you want to back up
  • FtpUsername: Your FTP username
  • FtpPassword: Your FTP password
  • HostName: The host name of your backup storage
  • FolderLocation: The path to the target folder where you want to save the folder
  • ArchiveName: The name of the folder you want to back up

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.

  • FtpUsername: Your FTP username
  • FtpPassword: Your FTP password
  • HostName: The host name of your backup storage
  • LocalFolder: The name of the local folder where you want to save the file
  • File: The path to the file you want to download
Filezilla (for Windows)

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.

NFS

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.

  • HostName: The host name of your backup storage
  • ServiceName: The name of your server (e.g. ns0000000.ip-123-123-123.net)
  • FolderMount: The folder where you want to mount the NFS share

Once the share is mounted, you can use commands like cp and rsync like on a normal directory.

CIFS

Windows

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.

  • HostName: The host name of your backup storage
  • ServiceName: The name of your server (e.g. ns0000000.ip-123-123-123.net)
Linux

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.

  • HostName: The host name of your backup storage
  • ServiceName: The name of your server (e.g. ns0000000.ip-123-123-123.net)
  • FolderMount: The folder where you want to mount the share (it must already exist)

Go further

Join our community of users on https://community.ovh.com/en/.


Did you find this guide useful?

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.

OVHcloud Community

Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Discuss with the OVHcloud community