Add basic backup capabilities (uncommited changes from long ago)

This commit is contained in:
Oliver Hattshire 2025-06-16 22:04:07 -04:00
parent e3fffa522a
commit 2107687a11
3 changed files with 219 additions and 0 deletions

17
restore.sh Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash
_date="$1"
if [ -z "$_date" ]
then
echo "Error: no date given."
exit 1
fi
compose_project="next"
compose_volumes=( "db-data" )
for volume in "${compose_volumes[@]}"
do
volume_name="${compose_project}_${volume}"
./vackup import "backup_${_date}.${volume_name}.tar.gz" "${volume_name}"
done