HI, I am trying to set up vertica backup to s3 and i am following this link
https://my.vertica.com/blog/whats-new-vertica-8-1-1-backup-amazon-s3/
Vertica version:
vertica-8.1.1-3.x86_64
However i am getting an error
Error: When loading config: File contains parsing errors: <???>
[line 58]: ""
Backup FAILED.
I have created a text file in /home/dbadmin/pw.txt and given owner and group same as my vertica.
my pw.txt looks like
somepasswordwithspecialcharacters
i have tried it with double quotes, single quotes and also without any quotes .But not sure how to solve this error. Please help
**my s3bak.ini looks like **
[S3]
; This section replaces the [Mapping] section and is required to back up to S3
; !!Mandatory!! S3 bucket name(no default).
s3_backup_path = s3://bucketname
; !!Mandatory!! directory used to manage locking during a backup (no default). If the directory is mounted on the initiator host, you should use "[]" instead of the local host name. The file system must support POSIX fcntl flock.
s3_backup_file_system_path = []:/vertica/data/
;s3_backup_file_system_path = []:/home/dbadmin/backup_locks_dir/
;s3_backup_file_system_path = /vertica/data
; Specifies SSL encrypted transfer.
; s3_encrypt_transport = True
; Specifies the number of threads for upload/download - backup
; s3_concurrency_backup = 10
; Specifies the number of threads for upload/download - restore
; s3_concurrency_restore = 10
[Misc]
; !!Recommended!! Snapshot name
; Valid values: a-z A-Z 0-9 - _
; snapshotName = backup_snapshot
[Database]
; !!Recommended!! If you have more than one database defined on this Vertica cluster, use this parameter to specify which database to backup/restore.
dbName = bi
; If this parameter is True, vbr prompts the user for the database password every time.
; If False, specify the location of password config file in 'passwordFile' parameter in [Misc] section.
dbPromptForPassword = False
; ------------------------------------------- ;
;;; ADVANCED PARAMETERS ;;;
; ------------------------------------------- ;
[Misc]
; The temp directory location on all database hosts.
; The directory must be readable and writeable by the dbadmin, and must implement POSIX style fcntl lockf locking.
; tempDir = /tmp/vbr
; Specifies the number of historical backups to retain in addition to the most recent backup.
; 1 current + n historical backups
; restorePointLimit = 1
; Full path to the password configuration file
; Store this file in directory readable only by the dbadmin.
; (no default)
passwordFile = /home/dbadmin/pw.txt
[Database]
; Vertica user name for vbr to connect to the database.
; This is rarely needed since dbUser is normally identical to the database administrator
; dbUser = current_username
