I show you, how to backup your docker volumes in three little steps:
- install a nice little script
- write a script to backup all volumes at once
- download them to your local hard drive
As a bonus we run our backups with cron to do this automatically.
In this video I use the script named "vackup" for backup, you can find it here: https://github.com/BretFisher/docker-vackup
To store the created backups locally, we download them with scp for secure downloading.
You can find all commands and code snippets right here: https://practicalscript.com/easy-docker-volume-backup/
Chapter:
00:00 Intro 00:14 check available Volumes 00:25 install vackup 00:58 write Backup Script 02:12 Script Test 02:37 Download Backup Files 03:41 schedule with cron 04:12 Bonus: use rsync