How to backup a docker container | Docker Volumes Backups with Ease: A Comprehensive Guide

  Рет қаралды 9,624

Tech with Marco

Tech with Marco

Күн бұрын

Welcome to this in-depth guide on implementing a robust and hassle-free backup strategy for your Docker volumes. Whether you're a seasoned Docker pro or just diving into containerization, safeguarding your data is essential. In this video, I'll walk you through every step of the process using the powerful "offen/docker-volume-backup" tool, ensuring your data's safety with minimal effort.
🔗 Link to GitHub files: github.com/marcogreiveldinger...
🔗 offen Repository: offen/docker-volume-backup: github.com/offen/docker-volum...
🔗 Link to restore the volumes: • Never lose any docker ...
Key Points Covered:
Setting up prerequisites:
- Docker, Docker-compose, and a remote backup storage solution (Nextcloud, AWS S3, SSH, WebDAV, and more).
- Exploring the features of "offen" for backup:
- Flexible local and remote backup options
- Customizable cron schedules for automated backups
- Container management: Stop containers during backup for data integrity
- Running scripts before and after backup operations
- GPG encryption for added security
Advantages of utilizing a Docker container for backups:
- Streamlined automation with no manual intervention
- Enhanced security: No additional binaries required on the host (unlike some traditional backup solutions)
Stay ahead in the world of Docker by mastering volume backups with "offen/docker-volume-backup." Don't leave your data vulnerable-learn how to implement a reliable backup strategy that fits your needs. Like, subscribe, and hit the notification bell to stay updated with the latest tech tutorials!
🔔 Stay Connected:
Subscribe to my channel for more insightful tech tutorials and hands-on guides.
🔗 My links:
Github: github.com/marcogreiveldinger
Website: marco-greiveldinger.de
Support me at Patreon: / techwithmarco
00:00 - 00:21 Intro
00:22 - 00:55 How do I manage docker volumes backups
00:56 - 2:10 offen/docker-volume-backup
02:11 - 5:35 docker-compose setup
05:36 - 08:10 environment files for configuration
08:11 - 9:11 dumping a database
09:12 - 10:31 dumping a volume
10:32 - 12:59 global configurations and encryption
13:00 - 15:15 backup in action
15:16 - 16:08 Notifications in slack with webhooks
16:09 - 17:23 Outro and conclusion
#DockerBackup #DataProtection #Containerization #TechTutorial #DevOps #BackupStrategy #opensource #awesomeopensource

Пікірлер: 33
@techwithmarco
@techwithmarco 7 ай бұрын
Here is a tutorial on how to restore the backups with some easy steps to follow :) kzbin.info/www/bejne/fIHMhGl5mNBnopI
@mazenyasser5303
@mazenyasser5303 10 ай бұрын
Please don't give up and continue because you deserve 1m+
@techwithmarco
@techwithmarco 10 ай бұрын
Yeah! That's the spirit. I already have 3 videos in the pipeline, but still to find time to edit them :-) So stay tuned!
@SmartieTV
@SmartieTV 7 ай бұрын
Very helpful tutorial, thanks a lot! :)
@techwithmarco
@techwithmarco 11 ай бұрын
I am sorry for the shit focus on the camera after a while.... And by the way, if you have not subscribed yet, now it is the time! 😜😋
@joelfrojmowicz
@joelfrojmowicz 9 ай бұрын
Amazing explanation on how to work with docker-volume-backup. Thanks for this video. Subscribed!
@techwithmarco
@techwithmarco 9 ай бұрын
Thanks a lot! Means a lot to me :-)
@mazenyasser5303
@mazenyasser5303 10 ай бұрын
Your videos are very good
@techwithmarco
@techwithmarco 10 ай бұрын
Thanks!
@yousefpahang
@yousefpahang 9 ай бұрын
Amazing ! Waiting for Restore video 😉
@techwithmarco
@techwithmarco 9 ай бұрын
Thanks! Good call! I have the video on my bucket list :-)
@yousefpahang
@yousefpahang 9 ай бұрын
still waiting :-D @@techwithmarco
@techwithmarco
@techwithmarco 7 ай бұрын
I hope the wait was worth it 😄 kzbin.info/www/bejne/fIHMhGl5mNBnopI
@ppaliwal89
@ppaliwal89 9 ай бұрын
this is great! would love to see how to restore from these backups when something indeed goes wrong
@techwithmarco
@techwithmarco 9 ай бұрын
Yes, it's already on my list to showcase that in one of my next videos :-)
8 ай бұрын
+1
@techwithmarco
@techwithmarco 7 ай бұрын
Here you go guys :) kzbin.info/www/bejne/fIHMhGl5mNBnopI
@davidk.3450
@davidk.3450 4 ай бұрын
Can you give me some examples how to backup volumes that are managed in another docker-compose file? (And maybee how to create a weekly-backup AND a monthly-backup within the same configuration) Thanks a lot
@Glatze603
@Glatze603 8 ай бұрын
Hi Marco, nice method, but I personaly prefere a proxmox server so I can easyly backup the complete docker-host regularly and automatically.
@techwithmarco
@techwithmarco 7 ай бұрын
Proxmox is on my list to get to know the software :) Lots of people using it which might not be for no reason 😄
@rolfamfelt9946
@rolfamfelt9946 11 ай бұрын
Remember to test restore. And a strategy for the pgp encryption pass.
@techwithmarco
@techwithmarco 11 ай бұрын
Yes! Thanks for the hint! I just forgot to show that in the video, but having it planned for a future video as a catch up! And for the pgp, this was just to demonstrate how easy that works. But for sure, you should have it stored somewhere securely and then make sure it is not stored in plaintext in your git. But that's also a whole other discussion about credentials from a security perspective... millions of possibilities what to do and what not to do.. 😄
@kurukey
@kurukey 10 ай бұрын
​@@techwithmarcowhere are you from
@dukefleedd
@dukefleedd 9 ай бұрын
How would it look like the compose file if Uptime-Kuma exists already as a service in the server ? Great Tuto though !
@techwithmarco
@techwithmarco 9 ай бұрын
Can you elaborate on that? So you mean if the Uptime-Kuma service existed in another docker-compose file and then add the backup service?
@ydiadi_
@ydiadi_ 7 ай бұрын
please do a restore video too
@techwithmarco
@techwithmarco 7 ай бұрын
There you go :) kzbin.info/www/bejne/fIHMhGl5mNBnopI
@TheOnlyEpsilonAlpha
@TheOnlyEpsilonAlpha 11 ай бұрын
5:31 i wonder you ready only mount the docker socket. Can it then even interact with the containers? 11:44 and I hope that values are not valid anymore when the video goes online 😅 My backup strategy is still in concept state. Currently I redundant store my important data on all servers for redundancy for a hardware failure. But that sounds nice ❤ Edit: And I use resilio sync containers for that
@techwithmarco
@techwithmarco 11 ай бұрын
You can try :-) But I made sure to disable this account 😜 The read only mode is just enough to interact with the docker socket. You are then just not able to modify the socket file itself
@TheOnlyEpsilonAlpha
@TheOnlyEpsilonAlpha 11 ай бұрын
@@techwithmarco I have to admit: I’m pretty new to docker, but for example, watchtower needs access to the socket to affect the other containers. How does this work in this case with a read only mode? 🤔
@techwithmarco
@techwithmarco 10 ай бұрын
@@TheOnlyEpsilonAlpha I think a might be wrong about the docker socket. I just got a comment under my traefik video, that there are other ways to use to docker sockert. Just google for docker-socket-proxy and there is a nice project on github which restrict access to the docker api. I'll take a look at it and maybe do another video about it.
@raylab77
@raylab77 9 ай бұрын
This is way too hard for the casual docker user. This is only for experts and deep Linux nerds. I wish someone would make a docker backup docker where most would be configured through a web portal. It would me accessible for the masses.
@techwithmarco
@techwithmarco 9 ай бұрын
Yes I can imagine. But you have to think that docker was actually developed for non-persistent containers or data.... So volumes do the exact opposite :-) But therefore tools were created to deal with these 'consequences'. Maybe have a look at portainer, which offers a nice web-ui for configuring docker container stacks. But still, it does not have a nice gui for volume backups. Maybe have a look at borgbackup and borgweb. (I haven't used them) it seems to offer a webui to use to configure stuff.
Migrate Docker Volumes from one Host to another // backup and restore
8:56
Dockge: The New Docker Manager You Need To See!
22:23
DB Tech
Рет қаралды 85 М.
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 38 МЛН
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 57 МЛН
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 1,8 МЛН
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 6 МЛН
Backing up your Docker Configurations and Data.
17:40
Awesome Open Source
Рет қаралды 29 М.
Docker Volume Backup Tutorial: Nextcloud Example
14:10
Techdox
Рет қаралды 5 М.
Docker tutorial for beginners | [In 2 Hours]
1:50:11
Bouali Ali
Рет қаралды 24 М.
CrowdSec Absolute Beginners Workshop
46:57
CrowdSec
Рет қаралды 9 М.
how did I NOT know about this?
23:06
NetworkChuck
Рет қаралды 899 М.
Learning Docker // Getting started!
35:56
Christian Lempa
Рет қаралды 104 М.
Creator of git, Linus Torvalds Presents the Fundamentals of git
1:10:15
Developers Alliance
Рет қаралды 17 М.
Don't use local Docker Volumes
12:43
Christian Lempa
Рет қаралды 169 М.
How To Use Docker To Make Local Development A Breeze
21:53
ArjanCodes
Рет қаралды 301 М.
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 410 М.
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,6 МЛН
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Кинг Комп Shorts
Рет қаралды 1,8 МЛН