Databases backup and restore#
pglift provides a streamlined way to perform logical database backup. Please refer to database dumps. Database restore, however, is left to the user’s responsibility.
pg_restore can also be used directly through
instance exec command.
$ pglift instance exec 14/main -- pg_dump -Fd mydb -j4 -f mydb.dump $ pglift instance exec 14/main -- pg_restore -d postgres --clean --create mydb.dump