pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: jcmalek@lakeheadu.ca
Subject: tar command example for backup file
Date: Thu, 22 Dec 2022 02:02:05 +0000
Message-ID: <167167452515.3504557.7795857663092030529@wrigleys.postgresql.org> (raw)

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).


Message-ID: <167167452515.3504557.7795857663092030529@wrigleys.postgresql.org>
Permalink:  ../167167452515.3504557.7795857663092030529@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/167167452515.3504557.7795857663092030529@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, jcmalek@lakeheadu.ca
  Subject: Re: tar command example for backup file
  In-Reply-To: <167167452515.3504557.7795857663092030529@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox