You are here: Home Services Data Storage and File Services sciebo - The Campus Cloud Best Practice - Back Up with Duplicati

Best Practice - Back Up with Duplicati

In order not to lose valuable files, care should be taken to ensure that local files or files in the Sciebo cloud (there is no real backup here) are backed up at regular intervals using a backup programme. If no backup programme is in use yet, we recommend the open-source programme Duplicati, which is available for the operating systems we support.

Duplicati 2.0 is an open-source software that creates backups and transfers them to network drives, hard drives or online storage. There are versions for Windows, Linux (Debian, Ubuntu, Fedora, RedHat) and macOS. Duplicati can be downloaded from the official website (https://www.duplicati.com/download). Duplicati can only be installed with administrator rights. The current stable version is 2.0.x.x (beta).
 

The following things should then be observed:

  1. Should only your own files be backed up or the entire computer? Your own files cannot be restored without a backup, but the installed programmes can be restored. Often, the start-up after a complete restoration is just as time-consuming as reinstalling the computer. Therefore, a pure data backup is recommended.
  2. The backup should never be on the same storage medium as the actual data, because in the event of a defect, both the actual data and the backup are usually lost.
  3. After setting up a backup, the restore should always be tested.
  4. If possible, the restore should not be restored directly to the source, but first to an independent location from which the restored files can be copied/moved to the original location.
  5. If Duplicati is used, the backup files are only created if something has changed within the backup period.
  6. If virtual files are used with Sciebo, they are downloaded and backed up by Duplicati during the backup. This can cause problems if the storage capacity on the computer is low.
     

Installation under Windows

  1. Please double-click on the downloaded file.
  2. Please click on "Next".
  3. Please accept the licence conditions and click on "Next".
  4. It is recommended not to make any changes in the setup, click on "Next" here as well.
  5. Then click on "Install" to start the installation.
  6. Click on "Finish" to complete the installation.
     

Installation under MacOS

Important note: The Mono framework is required (https://www.mono-project.com/download/stable/#download-mac).
 

  1. Double-click on the downloaded file.
  2. Drag "Duplicati" into the Applications folder.
  3. Then you will find Duplicati in the Finder in the Applications subfolder.

Installation under Ubuntu 20.04

  1. Open terminal
  2. Download the programme with the command wget https://updates.duplicati.com/beta/duplicati_[...]_all.deb
        [...] must be replaced by the version number
  3. The installation is then started with the command sudo apt install ./duplicati_[...]_all.deb -y
     is executed.

In order for the programme to work properly in the background and when starting the PC, a service for Duplicati must be created in the /etc/systemd/system folder called duplicati.service.

1. Create dublicati.service;

sudo nano/etc/systemd/system/duplicati.service

[Unit]
Description=Duplicati web-server
After=network.target
[Service]
Nice=19
IOSchedulingClass=idle
EnvironmentFile=-/etc/default/duplicati
ExecStart=/usr/bin/duplicati-server $DAEMON_OPTS
Restart=always
[Install]
WantedBy=multi-user.target

2. Definieren der Variablen $DAEMON_OPTS in der Datei duplicati
sudo nano /etc/default/duplicati

# Defaults for duplicati initscript
# sourced by /etc/init.d/duplicati
# installed at /etc/default/duplicati by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Additional options that are passed to the Daemon.
DAEMON_OPTS="--webservice-interface=any --webservice-port=8200 --portable-mode"

3. After setting up the service, it should be started once with the following commands. From then on, this happens automatically when the computer is started:
sudo systemctl enable duplicati.service
sudo systemctl daemon-reload
sudo systemctl start duplicati.service
sudo systemctl status duplicati.service 

In case of a warning message, the two files AlphaFS.dll and AlphaVSS.Common.dll should be copied into the folder /usr/lib/duplicati.

Creating a new Backup

When Duplicati is started for the first time, you will be asked to create a password. It is recommended to set a password! Important notes for backing up data in Sciebo: The Sciebo client must already be installed (https://sciebo.de/de/download/index.html). The Sciebo files under Windows are located under the following path: C:\Users\ \sciebo.

 

 

  1. Start Duplicati.
  2. Please click on "Add Backup -> Configure New Backup -> Next" to set up a new backup.
  3. Please enter a name and description for the backup, select the encryption type and enter a password. Click on "Next" to specify the backup destination.
  4. Select where the backup is to be stored. Click on "Next".
  5. Select which folders/files are to be backed up. Click on "Next".
  6. Set a backup frequency and click "Next".
  7. Set the backup details (keep all backups or overwrite) and click "Save".
  8. The scheduled backup is started automatically or you can start the first backup by clicking on "Backup now".

 

If the computer is off during the specified backup time, the backup is executed the next time the computer is restarted. Duplicati only backs up the data that has changed (incremental backup).

 

If the following warning is displayed on macOS:
[Warning-Duplicati.Library.Modules.Builtin.CheckMonoSSL-MissingCerts]: No certificates found, use the following commands to install some: cert-sync /etc/ssl/certs/ca-certificates.crt #for Debian based systems cert-sync /etc/pki/tls/certs/ca-bundle. crt #for RedHat variants curl -O https://curl.haxx.se/ca/cacert.pem; cert-sync --user cacert.pem; rm cacert.pem #for MacOS Further information: http://www.mono-project.com/docs/about-mono/releases/3.12.0/#cert-sync)
Please download the certificates from the following link:

 https://curl.haxx.se/ca/cacert.pem

and install them using the following command with the path to the certificate file "cert-sync --user cacert.pem".

Data Recovery

 

  1. Open Duplicati.
  2. Click either "Home -> Backup name -> Restore files", or "Restore -> Backup name -> Next".
  3. Select which folders/files are to be restored by date. Click on "Continue".
  4. Select to which location you want to restore the files, specify some options for the restore process and click "Restore".


Note: In the settings there is an option to hide the donation prompt that appears after restoring files.

Document Actions