简体   繁体   中英

PSQL Restore db file with xz

I created backup file psql.bak.xz of db, how to restore this file to db straight (without use unxz)?

I used this command to compress file:

pg_dump 2016 | xz > backups/psql.bak.xz

Thanks, Michael.

您可以解压缩并将其通过管道传输到psql

xzcat backups/psql.bak.xz | psql db

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM