separate generic backup & app spefic
This commit is contained in:
parent
dcad4aade2
commit
26a1fb2512
3 changed files with 5 additions and 9 deletions
|
@ -0,0 +1,3 @@
|
|||
function init-role-repo() {
|
||||
restic -r ${RESTIC_REPOSITORY}/pg-role -v init
|
||||
}
|
|
@ -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/
|
||||
|
|
|
@ -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"}]}
|
||||
|
|
Loading…
Reference in a new issue