sbin to bin

This commit is contained in:
julien
2025-01-20 11:21:42 +01:00
parent adf38fce9a
commit 00a32a9853
4 changed files with 1 additions and 1 deletions

17
bin/vol-restore Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
#
# Run this script as root inside a service directory.
# The backup have to be in the same directory.
#
BACKUP=${PWD##*/}.tar.zst
if [ -d "volumes" ]; then
rm -r volumes
fi
mkdir volumes
tar --zstd --same-owner -xvf $BACKUP -C volumes
# Todo :
# Import .sql if there
# rm volumes/*.sql