If you have been following mariushosting’s docker guides for your Synology NAS, you have surely wondered how to back up your beloved containers in case one day something goes wrong. In today’s guide I will explain to you how to back up your docker containers with all of your personal configurations in a simple and comprehensive way.
Download Synology Hyper Backup from the Package Center and back up the Docker Shared Folder in File Station.
Open your Docker package. In the left menu select Container. Select the container you want to Export then click on the Settings tab and, in the dropdown menu, click Export. Follow the instructions in the image below.
After you click Export, a new pop-up window will open. Select “Export container contents and settings“. Select Export to Diskstation or Export into your computer. Click Export. I prefer to save my container contents and settings in a Shared Folder in my NAS so I can easily back up everything with the Synology Hyper Backup package. Follow the instructions in the image below.
Once you click Export on STEP 4, your container will be labeled “Exporting” instead of “Running“. Follow the instructions in the image below.
After the export is finished, you will receive a Notification message in your DSM.
Note: Exporting a container may take some time depending on your NAS model.
After the export if finished, you will see the container automatically saved in a .txz format in the Shared Folder you have previously selected on STEP 4.
Now, if you lose your container settings you won’t have to worry anymore because you can import your backup. Open your Docker package and, in the left panel, click on Container, then select the Settings tab and Import from the dropdown menu. Follow the instructions in the image below.
After you click Import, a new pop-up window will open. Select your .txz container from your NAS or upload it from your PC, depending on where you have saved it.
Click OK. Follow the instructions in the image below.
Done! The last thing left to do is to start the container.
Note: I recommend you create a new Shared Folder for your Docker container backups.
Note: I recommend to you to backup your docker Shared Folder in File Station using Synology Hyper Backup package.
This post was updated on Tuesday / December 21st, 2021 at 3:02 PM