10 lines
260 B
Bash
Executable File
10 lines
260 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ! -d "volumes" ]; then
|
|
echo 'There is no data to archive ! Make sure you are in a service directory with persistent data (ie. must be a "volumes" directory there).'
|
|
exit
|
|
fi
|
|
|
|
ARCHIVE=${PWD##*/}.tar.zst
|
|
tar --zstd -cf $ARCHIVE -C volumes .
|