tar command example for backup file

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: jcmalek(at)lakeheadu(dot)ca
Subject: tar command example for backup file
Date: 2022-12-22 02:02:05
Message-ID: 167167452515.3504557.7795857663092030529@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/15/backup-file.html
Description:

It would be nice to change the tar command example to:
tar -cf backup.tar -C /usr/local/pgsql/data .
instead.

Otherwise, the /usr/local/pgsql path gets stored in the tar archive which
can be annoying to extract to another location (especially since not all
versions of tar support the newer --strip-components parameter).

Browse pgsql-docs by date

  From Date Subject
Next Message Laurenz Albe 2022-12-23 12:10:10 Fix broken event trigger example
Previous Message Euler Taveira 2022-12-18 14:55:01 Re: pg_stat_database view column xact_commit description should be more descriptive?