Add .tar.gz functionality

This commit is contained in:
Kai Vogelgesang 2020-02-05 19:56:50 +01:00
parent 19b4e6e601
commit c28248f2a0
2 changed files with 5 additions and 1 deletions

View File

@ -4,4 +4,4 @@ RUN apk update && apk add openssl openssh
COPY backup.sh .
ENTRYPOINT ./backup.sh
CMD ./backup.sh

View File

@ -1,3 +1,7 @@
#!/bin/ash
echo "backupinator :D"
tar czf /tmp/backup.tar.gz -C /in .
cp /tmp/backup.tar.gz /out