added restore
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Djeeberjr 2022-03-14 20:26:20 +01:00
parent 2c821d31db
commit 92a0ea8f77
3 changed files with 10 additions and 1 deletions

3
.gitignore vendored
View File

@ -9,4 +9,5 @@
!setup.sh
!interactive.sh
!mysql.sh
!.dockerignore
!.dockerignore
!restore.sh

View File

@ -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

7
restore.sh Normal file
View File

@ -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