diff --git a/README.org b/README.org index af9c6a6..40ea8a2 100644 --- a/README.org +++ b/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