Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

(SOLVED) Is this a good way to backup docker installations?

Featured Replies

Hi,

 

I've just recently started exploring the docker universe and it's pretty handy with all the easily accessible applications in there! I find myself consolidating more and more stuff into dockers and i'm already up to 12 of them now. I need a backup solution.

 

I store the docker configuration data in /mnt/user/appdata/*

Can i simply just include the /mnt/user/appdata/* path in my rsync backup script and that's that? Or am i going to run into trouble if i do it like that?

 

Thanks in advance.

Edited by je82

CA Backup / Restore Appdata plugin provides a nice scheduled and configurable interface, no need to reinvent the wheel.

 

However, doing it your way with rsync will probably provide acceptable results, as long as the containers don't mind backups being taken while running. Many won't get a clean backup without stopping them first, so you would need to script a docker stop <container> rsync job docker start container sequence.

Use Community Applications to find and install "CA Backup / Restore Appdata".

 

It has capabilities to stop the dockers, do the backup, then restart them. Copying and backing up files in use with your own process may prove troublesome.

 

Edited by BRiT

  • Author
2 minutes ago, jonathanm said:

CA Backup / Restore Appdata plugin provides a nice scheduled and configurable interface, no need to reinvent the wheel.

 

However, doing it your way with rsync will probably provide acceptable results, as long as the containers don't mind backups being taken while running. Many won't get a clean backup without stopping them first, so you would need to script a docker stop <container> rsync job docker start container sequence.

Cool, yeah thanks i'd want to include it in my regular backup script rather then using the plugin, just making sure it is an ok way to go, ill figure out the stopping of the containers before running the backup!

I'd likely do a 2 step process to prevent having to deal with issues:

 

1. use CA Backup to do the docker backups to a location in the array.

2. use own rsync backup script from the location in the array to offsite location(s) or at least different server(s).

30 minutes ago, BRiT said:

I'd likely do a 2 step process to prevent having to deal with issues:

I second this. Squid does a good job maintaining the backup app to remain compatible and keep up with any dockerman issues, why not let him to the hard work and you just rsync the resulting archive to your backup of choice. That way you can take advantage of his restore functionality if needed, vs. figuring out what needs to be extracted from your archives.

 

Just point your script to backup the .tar.gz file his program creates and be happy.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.