feat: launch scripts, dockerfiles for more languages
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
if [[ $1 ]]; then
|
||||
volume_name=$(echo $1)
|
||||
else
|
||||
echo "Volume name not specified, exiting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
save_path=$([[ $2 ]] && echo $2 || echo "./export")
|
||||
|
||||
docker run --rm \
|
||||
-v $volume_name:/data \
|
||||
-v $save_path:/backup \
|
||||
archlinux \
|
||||
bash -c "tar -xf /backup/export.tar.gz -C /data && ls /data"
|
||||
Reference in New Issue
Block a user