Browse Source

fix: doc: correct some mistakes around script to use ``pgm cp`` for restoring database

master
Valentin Lab 4 days ago
parent
commit
59ac24d30d
  1. 6
      README.org

6
README.org

@ -1107,8 +1107,10 @@ Récupération des derniers dumps:
#+begin_src sh
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
#+end_src

Loading…
Cancel
Save