first commit
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
#!/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 .
|
||||||
Executable
+8
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ARCHIVE=${PWD##*/}.tar.zst
|
||||||
|
if [ -d "volumes" ]; then
|
||||||
|
rm -r volumes
|
||||||
|
fi
|
||||||
|
mkdir volumes
|
||||||
|
tar --zstd --same-owner -xvf $ARCHIVE -C volumes
|
||||||
Reference in New Issue
Block a user