|
@ -1107,8 +1107,10 @@ Récupération des derniers dumps: |
|
|
|
|
|
|
|
|
#+begin_src sh |
|
|
#+begin_src sh |
|
|
compose --debug up postgres |
|
|
compose --debug up postgres |
|
|
for dump in /srv/datastore/data/postgres/var/backups/pg; do |
|
|
|
|
|
pgm cp "$dump" postgres@"${dump%%.*}" |
|
|
|
|
|
|
|
|
for dump in /srv/datastore/data/postgres/var/backups/pg/*; do |
|
|
|
|
|
dbname=${dump##*/} |
|
|
|
|
|
dbname=${dbname%%.*} |
|
|
|
|
|
pgm cp "$dump" postgres@"${dbname}" |
|
|
done |
|
|
done |
|
|
#+end_src |
|
|
#+end_src |
|
|
|
|
|
|
|
|