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> 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
Pg Basebackup Command: Create Compressed Backup Tar Gzip
pg_basebackup -D <path/to/backup_dir> -F t -z Pg Basebackup Command: Create Incremental Backup Using Manifest pg_basebackup -D <path/to/backup_dir> -i <path/to/old_manifest> Pg Basebackup Command: Limit Transfer Rate Server Load pg_basebackup -D <path/to/backup_dir> -r <100M> Pg Basebackup Command: Stream Wal Logs While Backup pg_basebackup -D <path/to/backup_dir> -X stream Pg Basebackup Command: Take Backup With Progress pg_basebackup -h <host> -D <path/to/backup_dir> -P