All Projects → tlaanemaa → backup-docker

tlaanemaa / backup-docker

Licence: Apache-2.0 license
A simple command line tool to backup and restore docker containers along with their volumes

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to backup-docker

PHP-Backuper
A framework which will help you to make (incremental) backups of your site.
Stars: ✭ 16 (-72.41%)
Mutual labels:  backup, restore
Go Mydumper
A multi-threaded MySQL backup and restore tool, faster than mysqldump
Stars: ✭ 250 (+331.03%)
Mutual labels:  backup, restore
Docker S3 Volume
Docker container with a data volume from s3.
Stars: ✭ 166 (+186.21%)
Mutual labels:  backup, volume
Cognito Backup Restore
AIO Tool for backing up and restoring AWS Cognito User Pools
Stars: ✭ 142 (+144.83%)
Mutual labels:  backup, restore
teledrive
TeleDrive lets you automatically backup all your files to telegram saved messages - this means FREE, UNLIMITED storage
Stars: ✭ 126 (+117.24%)
Mutual labels:  backup, restore
Knoxite
A data storage & backup system
Stars: ✭ 165 (+184.48%)
Mutual labels:  backup, restore
Pg rman
Backup and restore management tool for PostgreSQL
Stars: ✭ 197 (+239.66%)
Mutual labels:  backup, restore
Helicopterizer
Backup and Restore for Docker Container!
Stars: ✭ 112 (+93.1%)
Mutual labels:  backup, restore
proxmox toolbox
A toolbox to get the firsts configurations of Proxmox VE / BS done in no time
Stars: ✭ 158 (+172.41%)
Mutual labels:  backup, restore
IAmLazy
Easily backup and restore your tweaks
Stars: ✭ 37 (-36.21%)
Mutual labels:  backup, restore
Checkpoint
Fast and simple homebrew save manager for 3DS and Switch.
Stars: ✭ 1,886 (+3151.72%)
Mutual labels:  backup, restore
elcarro-oracle-operator
El Carro is a new project that offers a way to run Oracle databases in Kubernetes as a portable, open source, community driven, no vendor lock-in container orchestration system. El Carro provides a powerful declarative API for comprehensive and consistent configuration and deployment as well as for real-time operations and monitoring.
Stars: ✭ 204 (+251.72%)
Mutual labels:  backup, restore
Backup Manager
Database backup manager for dumping to and restoring databases from S3, Dropbox, FTP, SFTP, and Rackspace Cloud
Stars: ✭ 1,589 (+2639.66%)
Mutual labels:  backup, restore
helm-backup
Helm plugin which performs backup/restore of releases in a namespace to/from a file
Stars: ✭ 70 (+20.69%)
Mutual labels:  backup, restore
Nextcloud Backup Restore
Moved to codeberg.org - https://codeberg.org/DecaTec/Nextcloud-Backup-Restore - Bash scripts for backup/restore of Nextcloud
Stars: ✭ 115 (+98.28%)
Mutual labels:  backup, restore
System Tar And Restore
Backup and Restore your system using tar or Transfer it with rsync
Stars: ✭ 170 (+193.1%)
Mutual labels:  backup, restore
Zmbackup
A reliable software written in Shell Script to help you in your daily task to backup and restore mails and accounts from Zimbra Open Source Email Platform. Project in deprecation process. Please help me with Waddles.
Stars: ✭ 103 (+77.59%)
Mutual labels:  backup, restore
Conserve
[beta] robust portable backup tool in Rust
Stars: ✭ 107 (+84.48%)
Mutual labels:  backup, restore
virt-backup
Fully backup your KVM Virtual Machines
Stars: ✭ 27 (-53.45%)
Mutual labels:  backup, restore
laravel-database-manager
Make your database simple, easier and faster with vuejs.
Stars: ✭ 50 (-13.79%)
Mutual labels:  backup, restore

backup-docker

Node.js CI Coverage Status

A simple command line tool to backup and restore docker container inspection results and their volumes

The main idea of this package is to make backing up and restoring docker containers as easy as possible while avoiding backing up information that we can easily reproduce. This is achieved by backing up only the container's inspection files and the contents of their volumes. The inspection files can then be later used to recreate the same container, with the same settings, and the volume backups can be used to restore the contents of that container's volumes. This way we can have a backup of everything we would need to restore the container, while not bloating our backup files. All this of course assumes that the image is backed up elsewhere, as it usually is, like in a separate repository or DockerHub.

Installation

Requires node.js v8.0 or later

npm install -g backup-docker

Usage

There are 2 main commands:

  • backup - Creates a backup of the given container, or all if none is specified, and it's volumes
  • restore - Restores containers and volumes from existing backup files.

When run, two directories are created if not already present in the target directory (defaults to current working directory):

  • containers - Used to store container inspection files as .json files
  • volumes - Used to store the contents of volumes as .tar files

When run with restore command, backup-docker will expect these folders to exist in the target directory, if they don't, it will create them

By default, backup-docker will not backup non-persistent volumes (unnamed) and contents of NFS volumes. This is because it is assumed, that non-persistent volumes don't contain anything worth backing up and NFS volumes are already backed up by whoever is hosting them. This can be altered with the --non-persistent-volumes and --nfs-volume-contents flags.

Examples

  • backup-docker backup - Will backup all containers in the docker instance, and their volumes
  • backup-docker restore - Will restore all containers in containers folder, and their volumes
  • backup-docker backup banana - Will backup only the container named "banana" and all of it's volumes
  • backup-docker restore banana mango - Will restore only the containers named "banana" and "mango" and all of their volumes
  • backup-docker restore banana --only-containers - Will restore only the container named "banana" and not it's volumes
  • backup-docker restore banana --only-volumes - Will restore the volumes attached to the container named "banana" but not the container itself. The container itself must already exist in the docker instance

All general options

  • -v, --version - output the version number
  • -d, --directory [directory] - directory name to save to or look for container backups (default: current working directory)
  • -s, --socket-path [socket-path] - docker socket path
  • --only-containers - backup/restore containers only
  • --only-volumes - backup/restore volumes only. If used with the restore command then the container is expected to already exist and the container names, if not provided, are still taken from backups
  • -h, --help - output usage information

Backup specific options

  • --nfs-volume-contents - also backup the contents of nfs volumes
  • --non-persistent-volumes - also backup non-persistent (unnamed) volumes
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].