pg_basebackup Verified for current stable LTS

Pg Basebackup Command: Relocate Tablespace During Backup

Use for relocate tablespace during backup with Pg Basebackup. Exact CLI syntax to relocate tablespace during backup using Pg Basebackup.

When to use this: Use for relocate tablespace during backup with Pg Basebackup.

Command Syntax

pg_basebackup -D <path/to/backup_dir> -T <path/to/old_tablespace>=<path/to/new_tablespace>

Command Breakdown

-D
Command Option
Tool-specific option used by this command invocation.
-T
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to relocate tablespace during backup using Pg Basebackup.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Pg Basebackup directory