connect-backup
connect-backup copied to clipboard
File Output Issues with Special Characters
During the backup of an instance, object names with certain special characters do not write to the file system properly.
Example:
A connect Instance with a Hours of Operation entry called "24/7" results in a failure as it tries to write out a 24/7.json file and the OS interprets it a as a path.
# connect-backup --instance REDACTED backup --file=ConnectBackup
2023/11/14 13:44:07 Backing up Hours
2023/11/14 13:44:07 open ConnectBackup//REDACTED/hours-of-operation/24/7.json: no such file or directory
2023/11/14 13:44:07 Failed to write to the destination
Suggestion: Escape or Quote the files before writing to disk or strip path characters from the file.
Suggestion 2: Change the name of the argument from --file
to --directory
or --folder