register files - pgrecm/RECM GitHub Wiki
This command register backup files from a file system in the current DEPOSIT.
/cfg Register only configuration backups files /wal Register only WAL backup files /full Register only FULL and WAL backups files /meta Register only METADATA backup files /directory="PATH" Register backup files from a given directory
This command register backup files from a file system in the current DEPOSIT. This command can be used when you create a new deposit, or when you need to move backup files to different location.
The process does not take subdirectories into account.
The default directory used is the '/backupdir' parameter defined in cluster (show cluster/backupdir).
Registering files does not retreive 'tables' and 'indexes' informations. That means, backup done with '/noindex' will loose index informations for rebuild.
The backup is still usable, but you will have to recreate all the missing indexes by yourself.
RECM> register files /verbose /dir="/Volumes/pg_backup" recm-inf: Scanning directory '/Volumes/pg_backup' RECM> register files /verbose /dir="/Volumes/pg_backups" recm-inf: Scanning directory '/Volumes/pg_backups' recm-inf: Skipping file '000161de69df0a5e24f0_3_FULL.recm'. Does not belongs to cluster recm-inf: Skipping file '000161de69df0a5e24f0_8_FULL.recm'. Does not belongs to cluster recm-inf: Skipping file '000261dedeec2d770da8_1_WAL.recm'. Does not belongs to cluster recm-inf: Skipping file '000161def52422bf6a90_8_FULL.recm'. Does not belongs to cluster recm-inf: Skipping file '000161de69df0a5e24f0_11_FULL.recm'. Does not belongs to cluster recm-inf: Skipping file '000161def0750e5fb3e8_5_FULL.recm'. Does not belongs to cluster recm-inf: Skipping file '000261deecf20764f5a8_3_FULL.recm'. Does not belongs to cluster ... recm-inf: Skipping file '000161def651162d5288_1_FULL.recm'. Does not belongs to cluster recm-inf: Registering backup UID '000361d389502c329c4b', file '/Volumes/pg_backups/000361d389502c329c4b_1_WAL.recm'. recm-inf: Skipping file '000161de69df0a5e24f0_12_FULL.recm'. Does not belongs to cluster recm-inf: Skipping file '000161de69df0a5e24f0_6_FULL.recm'. Does not belongs to cluster recm-inf: Skipping file '000161def651162d5288_11_FULL.recm'. Does not belongs to cluster recm-inf: Registering backup UID '000361d389280ae4e547', file '/Volumes/pg_backups/000361d389280ae4e547_6_FULL.recm'. recm-inf: Skipping file '000161def651162d5288_12_FULL.recm'. Does not belongs to cluster recm-inf: Reading piece '/Volumes/pg_backups/000361d3893529f33a59_1_WAL.recm' recm-inf: Remembering WAL file '00000001000000000000001F.gz' recm-inf: Remembering WAL file '000000010000000000000020.gz' recm-inf: Remembering WAL file '000000010000000000000020.00000028.backup.gz' recm-inf: Remembering WAL file '000000010000000000000021.gz' recm-inf: Remembering WAL file '000000010000000000000022.gz' recm-inf: Remembering WAL file '000000010000000000000023.gz' recm-inf: Remembering WAL file '000000010000000000000024.gz' ... recm-inf: Remembering WAL file '00000001000000000000002C.gz' recm-inf: Remembering WAL file '00000001000000000000002D.gz' recm-inf: Remembering WAL file '00000001000000000000002E.gz' recm-inf: Remembering WAL file '00000001000000000000002E.00000060.backup.gz' recm-inf: Reading piece '/Volumes/pg_backups/000361d9cdde362585a7_1_WAL.recm' recm-inf: Remembering WAL file '000000010000000000000033.gz' recm-inf: Remembering WAL file '000000010000000000000034.gz' recm-inf: Reading piece '/Volumes/pg_backups/000361d409821a787579_1_WAL.recm' recm-inf: Remembering WAL file '000000010000000000000031.gz' recm-inf: Reading piece '/Volumes/pg_backups/000361d4098820af19da_1_WAL.recm' recm-inf: Remembering WAL file '000000010000000000000032.gz' recm-inf: Reading piece '/Volumes/pg_backups/000361d389502c329c4b_1_WAL.recm' recm-inf: Remembering WAL file '00000001000000000000002F.gz' recm-inf: Remembering WAL file '000000010000000000000030.gz' recm-inf: Remembering WAL file '000000010000000000000030.00000028.backup.gz' RECM> list backup List backups of cluster 'R6666' (CID=3) UID Date Type Status TL Size Tag ---------------------- -------------------- ------ ------------ ---- ---------- ------------------------- 000361d389280ae4e547 2022-01-03 18:39:29 FULL AVAILABLE 1 106 MB 20220103_CLU14_FULL 000361d3893529f33a59 2022-01-03 18:39:43 WAL AVAILABLE 1 260 KB 20220103_CLU14_FULL 000361d389463b0508c9 2022-01-03 18:40:02 FULL AVAILABLE 1 106 MB 20220103_CLU14_FULL 000361d389502c329c4b 2022-01-03 18:40:12 WAL AVAILABLE 1 32 KB 20220103_CLU14_FULL 000361d409821a787579 2022-01-04 23:49:38 WAL AVAILABLE 1 16 KB 20220104_CLU14_WAL 000361d4098820af19da 2022-01-04 23:49:44 WAL AVAILABLE 1 16 KB 20220104_CLU14_WAL 000361d9cdde362585a7 2022-01-08 18:46:06 WAL AVAILABLE 1 32 KB 20220108_CLU14_WAL RECM>