All Projects → BretFisher → docker-vackup

BretFisher / docker-vackup

Licence: Unlicense license
Script to easily backup and restore docker volumes

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to docker-vackup

Backup-Scripts
PowerShell Scripts and Automation Manager Policies for N-able Backup
Stars: ✭ 26 (-74.51%)
Mutual labels:  backup
QQ-History-Backup
QQ聊天记录备份导出,支持无密钥导出,图片导出。无需编译有GUI界面。Backup Chating History of Instant Messaging QQ.
Stars: ✭ 300 (+194.12%)
Mutual labels:  backup
note
just note , take down what ever i want
Stars: ✭ 62 (-39.22%)
Mutual labels:  backup
dbaTDPMon
dbaTDPMon - Troubleshoot Database Performance and Monitoring
Stars: ✭ 20 (-80.39%)
Mutual labels:  backup
BackupAssistant
Backup Assistant helps you to backup your files (like database backups or log files) to FTP Server. It works on any platform. ( Windows, Linux and Mac.)
Stars: ✭ 32 (-68.63%)
Mutual labels:  backup
oc-backup-plugin
Backup system for October CMS
Stars: ✭ 18 (-82.35%)
Mutual labels:  backup
raptor
The definitive EasyEngine installer with fully functional backup-restore and SFTP functionalities included
Stars: ✭ 26 (-74.51%)
Mutual labels:  backup
vmSafeguard
vmSafeguard is a management, planning, backup system for a Vmware ESXi(s) solution, orchestrated through a Web Admin Panel. RTFM for more info. Under develop since Jun 2020
Stars: ✭ 20 (-80.39%)
Mutual labels:  backup
WindowsFileHistoryCleaner
Simple command line executable to turn a File History share back into a snapshot of files
Stars: ✭ 15 (-85.29%)
Mutual labels:  backup
fb-export
Export (most) of your Facebook data using Node.js and the Graph API.
Stars: ✭ 21 (-79.41%)
Mutual labels:  backup
Automation-using-Shell-Scripts
Development Automation using Shell Scripting.
Stars: ✭ 41 (-59.8%)
Mutual labels:  backup
authy-extractor
Extract 2FA tokens from Authy.
Stars: ✭ 30 (-70.59%)
Mutual labels:  backup
ebs-backup
Backup EBS Volumes
Stars: ✭ 34 (-66.67%)
Mutual labels:  backup
bash-backup
Simple backup script for GNU/Linux servers
Stars: ✭ 76 (-25.49%)
Mutual labels:  backup
ansible-role-borgbackup
No description or website provided.
Stars: ✭ 13 (-87.25%)
Mutual labels:  backup
terraform-aws-backup
Terraform module to provision AWS Backup, a fully managed backup service that makes it easy to centralize and automate the back up of data across AWS services such as EBS volumes, RDS databases, DynamoDB tables, EFS file systems, and AWS Storage Gateway volumes.
Stars: ✭ 62 (-39.22%)
Mutual labels:  backup
otp-authenticator-webapp
A 'Google Authenticator' like Single Page Application
Stars: ✭ 69 (-32.35%)
Mutual labels:  backup
gh stars export
Exports list of all your starred Github repos to a json file
Stars: ✭ 27 (-73.53%)
Mutual labels:  backup
aws-utils
This repository provides utilities which are used at MiQ.
Stars: ✭ 20 (-80.39%)
Mutual labels:  backup
cylon-deb
TUI menu driven bash shell script to update and maintain a Debian based Linux distro.
Stars: ✭ 23 (-77.45%)
Mutual labels:  backup

Vackup: Backup and Restore Docker Volumes

Lint Code Base

Vackup: (contraction of "volume backup")

Easily backup and restore Docker volumes using either tarballs or container images. It's designed for running from any host/container where you have the docker CLI.

Note that for open files like databases, it's usually better to use their preferred backup tool to create a backup file, but if you stored that file on a Docker volume, this could still be a way you get the Docker volume into a image or tarball for moving to remote storage for safe keeping.

export/import commands copy files between a local tarball and a volume. For making volume backups and restores.

save/load commands copy files between an image and a volume. For when you want to use image registries as a way to push/pull volume data.

Usage:

vackup export VOLUME FILE Creates a gzip'ed tarball in current directory from a volume

vackup import FILE VOLUME Extracts a gzip'ed tarball into a volume

vackup save VOLUME IMAGE Copies the volume contents to a busybox image in the /volume-data directory

vackup load IMAGE VOLUME Copies /volume-data contents from an image to a volume

Install

Download the vackup file in this repository to your local machine in your shell path and make it executable.

curl -sSL https://raw.githubusercontent.com/BretFisher/docker-vackup/main/vackup > /usr/local/bin/vackup
chmod +x /usr/local/bin/vackup

Error conditions

If any of the commands fail, the script will check to see if a VACKUP_FAILURE_SCRIPT environment variable is set. If so it will run it and pass the line number the error happened on and the exit code from the failed command. Eg,

# /opt/bin/vackup-failed.sh
LINE_NUMBER=$1
EXIT_CODE=$2
send_slack_webhook "Vackup failed on line number ${LINE_NUMBER} with exit code ${EXIT_CODE}!"
export VACKUP_FAILURE_SCRIPT=/opt/bin/vackup-failed.sh
./vackup export ......
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].