sbin to bin
This commit is contained in:
17
bin/vol-restore
Executable file
17
bin/vol-restore
Executable 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
|
Reference in New Issue
Block a user