After 22.2 upgrade we have a weird issue with the DR DB backup.
Here is the error:
[[email protected] drbackup]$ ./DRbackup_remote_script.sh
Error: Error in VBR config: Snapshot name: CAPM_remote_backup.ini contains invalid characters, it may contain only the following characters: a-z, A-Z, 0-9, hypen(-) and underscore(_).
Backup FAILED.
However, as you can see, there are no special characters in the .ini file. Here:
[[email protected] drbackup]$ more CAPM_remote_backup.ini
[Misc]
snapshotName = CAPM_remote_backup.ini
restorePointLimit = 7
objectRestoreMode = createOrReplace
passwordFile = pwdfile
[Database]
dbName = drdata
dbUser = admin
[Transmission]
[Mapping]
v_drdata_node0001 = drs-host1:/opt/CA/drbackup
v_drdata_node0002 = drs-host2:/opt/CA/drbackup
v_drdata_node0003 = drs-host3:/opt/CA/drbackup
[[email protected] drbackup]$
Here is how this ini is called:
[[email protected] drbackup]$ more DRbackup_remote_script.sh
/opt/vertica/bin/vbr.py --task backup --config-file /opt/CA/drbackup/CAPM_remote_backup.ini
Release : 22.2
The snapshot name does not need to have an extension.
The .ini on the end of the name is the culprit.
Change line 2 from
snapshotName = CAPM_remote_backup.ini
to
snapshotName = CAPM_remote_backup