You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -453,12 +453,16 @@ Redardless of data checksums been enabled or not, pg_probackup always check page
453
453
454
454
####External directories
455
455
456
-
To back up a directory located outside of the data directory, use the optional`--external-dirs` parameter that specifies the path to this directory. If you would like to add more than one external directory, provide several paths separated by colons.
456
+
To back up a directory located outside of the data directory, use the optional`--external-dirs` parameter that specifies the path to this directory. If you would like to add more than one external directory, provide several paths separated by colons, on Windows system paths must be separated by semicolon instead.
457
457
458
458
For example, to include '/etc/dir1/' and '/etc/dir2/' directories into the full backup of your*instance_name* instance that will be stored under the*backup_dir* directory, run:
459
459
460
460
pg_probackup backup -B backup_dir --instance instance_name -b FULL --external-dirs=/etc/dir1:/etc/dir2
461
461
462
+
For example, to include 'C:\dir1' and 'C:\dir2' directories into the full backup of your*instance_name* instance that will be stored under the*backup_dir* directory on Windows system, run:
463
+
464
+
pg_probackup backup -B backup_dir --instance instance_name -b FULL --external-dirs=C:\dir1;C:\dir2
465
+
462
466
pg_probackup creates a separate subdirectory in the backup directory for each external directory. Since external directories included into different backups do not have to be the same, when you are restoring the cluster from an incremental backup, only those directories that belong to this particular backup will be restored. Any external directories stored in the previous backups will be ignored.
463
467
464
468
To include the same directories into each backup of your instance, you can specify them in the pg_probackup.conf configuration file using the[set-config](#set-config) command with the`--external-dirs` option.