diff --git a/.gitignore b/.gitignore index ce96a60..aff804a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ !setup.sh !interactive.sh !mysql.sh -!.dockerignore \ No newline at end of file +!.dockerignore +!restore.sh \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 0dcc7ae..0fcf1e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ RUN mkdir /app && mkdir /config COPY setup.sh /app/setup.sh COPY backup.sh /app/backup.sh COPY interactive.sh /app/interactive.sh +COPY restore.sh /app/restore.sh # COPY mysql.sh /app/mysql.sh WORKDIR /config diff --git a/restore.sh b/restore.sh new file mode 100644 index 0000000..aa1d75b --- /dev/null +++ b/restore.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +. /app/setup.sh + +# find . -maxdepth 1 -type d -printf '%f\n' | tail -n +2 + +restic restore latest