Skip to content

Instantly share code, notes, and snippets.

@shreyasssk
Last active April 25, 2021 06:35
Show Gist options
  • Save shreyasssk/3b471358eac8709a36ceb3102f39097c to your computer and use it in GitHub Desktop.
Save shreyasssk/3b471358eac8709a36ceb3102f39097c to your computer and use it in GitHub Desktop.
A gist to restore backed-up docker volumes on migrated server

Restoring a docker volume

Before restoring the backup run the following command:

$ chmod +x first-script.sh
$ ./first-script.sh

This script will clean the locally stored backup if any and create a backup folder to store the backup.

In the Backup Duplicati Server perform the following steps:

Step 1:

Click Restore files dck-bckup-01

Step 2:

Select the files to backup, in this this select everything under source folder and click "continue". dck-bckup-02

Step 3:

  • Select Pick Location and then click on backup folder.
  • Select the Overwrite option.
  • Under Permissions click the Restore option. Then click Restore button. dck-bckup-03

After Backup is performed successfully run the following commands:

$ chmod +x second-script.sh
$ ./second-script.sh

This script will copy the backed up data to docker container volume location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment