From 92a0ea8f774bb9541b734f962432ff8f513ffd38 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Mon, 14 Mar 2022 20:26:20 +0100 Subject: [PATCH] added restore --- .gitignore | 3 ++- Dockerfile | 1 + restore.sh | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 restore.sh 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