piscue / docker-backup-scripts Goto Github PK
View Code? Open in Web Editor NEWScripting to backup all your running containers
Scripting to backup all your running containers
How restore using this backup?
Being a bunch of bash scripts, would benefit from a better security posture and less possible issues with wildcards of all the scripts being shellcheck compatible
A this time, the script get all volumes from a container and merge all data in one single tar file. This behavior completely prevents restoring volumes to their initial state because we cannot determine the name and data of each volume.
The idea would be to separate the volumes found in a "volumes" folder at the root of the backup and to give the name of the volume to the file.
In this way, each volume can be restored and at the same time we avoid volume duplication which will affect the size of the backup (if two containers share the same volume, currently we create the backup twice)
Kinda like the title says :) It would be nice, else i would like to contribute after im done making mine.
Theres probably more that I'm expected to know but as far as I can tell this script backs everything up to a text file in JSON format, and the volume, but when I restore, it only restores the volume. How do I restore the rest?
When i run the script I get this error
ghost - docker: Error response from daemon: OCI runtime create failed: invalid mount {Destination::/backup Type:bind Source:/var/lib/docker/volumes/$volume_ID/_data Options:[rbind]}: mount destination :/backup not absolute: unknown. OK
This happens for all of my containers and I am running it as root.
Im kinda new to linux and I could just be messing something up but what am I doing wrong here?
Cheers
A back-up is as good as it's restore. So I wanted to restore, do you have some instructions on that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.