Giter Club home page Giter Club logo

ximes / backup_docker_scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alaub81/backup_docker_scripts

0.0 0.0 0.0 38 KB

with these script you are able to backup your docker environment. There is one for the compose project, for mysql or mariadb, for postgres SQL and for normal docker volumes.

Home Page: https://www.laub-home.de/wiki/Docker_Backup_und_Restore_-_eine_kleine_Anleitung

License: GNU Affero General Public License v3.0

Shell 100.00%

backup_docker_scripts's Introduction

Repository Description

with these script you are able to backup your docker environment. There is one for the compose project, for one mysql or mariadb, one for postgres SQL and one for the docker volumes.

Installation

Just download the needed Script/s to /usr/local/sbin and give them the excute (chmod +x SCRIPTNAME) then you could just start it from wherever you are in the filesystem.

Usage

backup-docker-volume.sh

This Script backups docker volumes of the system to a defined Path. You could define the volumes and the backup path in the script itself. Also you could configure the days, how long the backup files will remain as backup. After configuration of the script, you could just start it with:

backup-docker-volume.sh

backup-docker-mysql.sh

This Script backups mysql or mariaDB containers with mysqldump. Just define the backup folder in the script and start it with:

backup-docker-mysql.sh

You can also configure the days, the backupfiles will remain in the backup folder.

Attention: If you are using Docker Secrets, it will not work. More informations here: #1

backup-docker-postgres.sh

This Script backups postgres database containers with pg_dumpall. Just define the backup folder in the script and start it with:

backup-docker-postgres.sh

You can also configure the days, the backupfiles will remain in the backup folder.

backup-docker-influxdb.sh

This Script backups influxdb database containers with influx backup. Just define the backup folder in the script mount it into the container under /backup and start it with:

backup-docker-influxdb.sh

You can also configure the days, the backupfiles will remain in the backup folder.

backup-docker-compose.sh

With the help of backup-docker-compose.sh you are able to backup the whole docker-compose project folder of each docker-compose project you are running. It uses tar.gz to archive all the files and folders to the predifined backup folder. Just configure the script in the top and run it:

backup-docker-compose.sh

You can also configure the days, the backupfiles will remain in the backup folder.

More Informations you could find here:

backup_docker_scripts's People

Contributors

alaub81 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.