Recover data using Duplicati
Points to remember while recovering using Duplicati.
Scenario 1 : The docker containers are up and runing
Duplicati backups the volume data of the container.
During the restoration process you have to use the same version of the container:
example:
services:
metabase:
image: metabase/metabase:Latest --> image: metabase/metabase:v0.47.7
if you use the Latest tag in the stack file it might break the system as some of the new files in the latest version could be missing in the backed up data.
This was most prominantly found in database restoration.
postgres:
image: postgres:Latest -- > image: postgres:16
So when ever a restoration needs to be done the version in the stack yml file of the container is important.
Scenario 2: The docker container couldnt be started for X reasons.
In this scenario, you spin up a new duplicati instance from another server or another LXC host
After loging in to Duplicati click on restore
Method 1 : Direct restore from backup files
- In the Storage type select SFTP (SSH)
- Fill the following info like Server, port = 22 , path os server = ‘/file-share’, username and password.
- If yo have set Encryption , please fill the passphrase
- The next window will point to the folders to restore, select the appropriate folder to restore
- The next step is to restore the file to a location, I have asked to restore to a folder backups in the local host
- click on Restore to complete the restore
Method 2 : Restore from configuration
- This method would work if you have backed up the configuartion file
- choosse the configuration file and hit import, you will see the infos autopopulated as below from the config file:
- The next window will point to the folders to restore, select the appropriate folder to restore
- The next step is to restore the file to a location, I have asked to restore to a folder backups in the local host
- click on Restore to complete the restore