separate generic backup & app spefic

This commit is contained in:
jem 2020-12-31 13:48:08 +01:00
parent dcad4aade2
commit 26a1fb2512
3 changed files with 5 additions and 9 deletions

View file

@ -0,0 +1,3 @@
function init-role-repo() {
restic -r ${RESTIC_REPOSITORY}/pg-role -v init
}

View file

@ -10,10 +10,5 @@ apt-get -qqy install wget postgresql-client-13 restic > /dev/null;
update-ca-certificates
install -m 0700 /tmp/entrypoint.sh /
install -m 0400 /tmp/functions.sh /usr/local/lib/
install -m 0700 /tmp/init.sh /usr/local/bin/
install -m 0700 /tmp/backup.sh /usr/local/bin/
install -m 0700 /tmp/restore.sh /usr/local/bin/
install -m 0400 /tmp/backup-pg-functions.sh /usr/local/lib/

View file

@ -2,6 +2,4 @@
{:name "postgresql-client-13"}]
:file [{:path "/entrypoint.sh" :mod "700"}
{:path "/usr/local/lib/functions.sh" :mod "400"}
{:path "/usr/local/bin/init.sh" :mod "700"}
{:path "/usr/local/bin/backup.sh" :mod "700"}
{:path "/usr/local/bin/restore.sh" :mod "700"}]}
{:path "/usr/local/lib/backup-pg-functions.sh" :mod "400"}]}