initial commit
This commit is contained in:
14
restic_restore.sh
Executable file
14
restic_restore.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_DIR=$(readlink -f $(dirname "${BASH_SOURCE[0]}"))
|
||||
COMPOSE_FILE=$SCRIPT_DIR/docker-compose.yml
|
||||
|
||||
echo "Stopping containers"
|
||||
docker compose -f $COMPOSE_FILE stop 2>/dev/null
|
||||
|
||||
SNAPSHOT_ID=${1:-latest}
|
||||
$SCRIPT_DIR/restic_command.sh --verbose restore $SNAPSHOT_ID:/data --target /data
|
||||
|
||||
echo "Executing compose up"
|
||||
docker compose -f $COMPOSE_FILE up -d 2>/dev/null
|
||||
echo "Done"
|
||||
Reference in New Issue
Block a user