this post was submitted on 25 Oct 2023
2 points (100.0% liked)

Self-Hosted Main

504 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

โ€‹

Hey - so I am just getting started with self hosting and docker containers.

I have found that I can backup all my containers to this location easily via script https://hub.docker.com/repository/docker

My largest container compressed size in my private repository is 3GB.

I was wondering if backing up to a hub.docker private repository is okay and if there is going to be cost/limitations to doing that?

What are you using for backing up your containers? I noticed people often expressing importance of backups but then not sharing how they are doing their backups and their backup setup.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] tweek91330@alien.top 1 points 1 year ago

I won't say you cannot or shouldn't backup a container since it it wrong imo, but as your using docker as a base i'd say just backup mapped volumes and configuration files. Docker is built around breaking and rebuilding your container and keep working anyways as long as your mapped volumes and docker configurations are the same (asuming you use a well maintained image for updates or something of your own).

That's probably the sane way to do it and will save you space. I don't see the benefit of a full container backup (unless it's an lxc, lxd container or another full persistent container type).

As for the backup repository you can use whatever. If it were me i'd use another server or a NAS, but most cloud storage provider would fit. Storage is never free though.