Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Latest commit

 

History

History
64 lines (45 loc) · 2.96 KB

README.md

File metadata and controls

64 lines (45 loc) · 2.96 KB

OVH Object Storage - Windows File Backup

This is a quick write up to show 2 ways to use OVH Public Cloud Object storage to backup data on Windows. The first method is suitable for any Windows installation using an Open Source bit of software called Duplicati. The second uses duplicity via the Linux Subsystem for Windows 10.

Prerequisites

Before starting either of the methods below you will need an OVH Public Cloud and the open stack configuration file from the Public Could Web Control Panel. To get your config file:

  1. Click on the OpenStack menu in the Public Cloud Project.
  2. Click "Add User" button.
  3. Click "Downloading an Open…"
  4. Select the region you want your backups to be in.
  5. Click "Confirm"

Image of Steps

Keep this file as you will need it later.

Method 1 – Duplicati

This method uses an Open Source software call Duplicati, more information can be found here. This method is the preferred as it allows for scheduling and multiple versions of backups.

  1. Download and install Duplicati.
  2. Open Duplicati.
  3. Click "Add Backup" on the side menu.
  4. Select "Configure a new backup" and click "Next".
  5. Give the backup a name and passphrase (keep this safe) and click "Next".
  6. Fill the form as shown here: Form Image, then click "Next".
  7. Select your Source Data and fill out and Filters and Exclusions.
  8. Fill out your schedule as required.
  9. Fill out any remaining options you require and click "Save".

The back is now setup and will continue to backup so long as Duplicati is left running. To restore a backup, click "Restore" on the side menu and follow the wizard.

Method 2 – Duplicity

This method uses 2 batch files alongside 2 bash files for the Windows 10 Linux Subsystem. You will need new bash files for each new backup job you wish to create.

  1. Install Linux Subsystem for Windows 10 – more info here.
  2. Add duplicity repo, update and install it.
sudo add-apt-repository ppa:duplicity-team/ppa

sudo apt-get update && sudo apt-get install duplicity
  1. Install Swift
sudo apt-get install python-pip

sudo pip install python-swiftclient python-keystoneclient
  1. Edit the bash (backup.sh & restore.sh) files to your needs – you will need the info from the OpenStack config file where:
  • SWIFT_USERNAME --> OS_USERNAME
  • SWIFT_PASSWORD --> Your OpenStack Password
  • SWIFT_AUTHURL --> "https://auth.cloud.ovh.net/v2.0/"
  • SWIFT_AUTHVERSION --> "2"
  • SWIFT_TENANTNAME --> OS_TENNANT_NAME
  • SWIFT_REGIONNAME --> OS_REGION_NAME
  1. When you need to backup, run the backup.bat file.
  2. When you need to restore, run the restore.bat file.