{"repo":"BretFisher/docker-vackup","free":true,"listed":false,"github":"https://github.com/BretFisher/docker-vackup","clone":"git clone https://github.com/BretFisher/docker-vackup.git","description":"Script to easily backup and restore docker volumes","language":"Shell","stars":491,"topics":["docker","backup","volumes","containers"],"license":"Unlicense","category":"deployment-docker-iac","readme_excerpt":"Vackup: Backup and Restore Docker Volumes This is now built into Docker Desktop's Dashboard UI (Volumes Tab) which has more features, but I'll keep this tool around for those not using Docker Desktop. 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 an 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 [OPTIONS] VOLUME FILE Creates a gzip'ed tarball in current directory from a volume - --owner=UID[:GID] Change the ownership of the exported archive on Linux (won't have any effect on macOS) 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","default_branch":null,"files":null,"tree":[],"storefront":"/r/BretFisher","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/BretFisher/docker-vackup/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}