Unable to connect to db , while taking backup
Posted: Wed Sep 25, 2013 10:00 am
hi
i created configuration file using vbr.py
and now trying to take entire backup of my single node Vertica db using vbr.py
but m getting below error
./vbr.py --task backup --config-file /home/dbadmin/VerticaBkp.ini
Preparing...
Found Database port: 5433
Traceback (most recent call last):
File "./vbr.py", line 1956, in backup
prepareAll()
File "./vbr.py", line 1388, in prepareAll
getHostNameAndCatDir()
File "./vbr.py", line 1655, in getHostNameAndCatDir
saveInfoFile(os.path.abspath('%s/%s.info'%(g["tmpDir"], g["snapshotName"])))
File "./vbr.py", line 1546, in saveInfoFile
infoFile = open(infoFilePath, 'w')
IOError: [Errno 2] No such file or directory: '/tmp/vbr/home/dbadmin/VerticaBkp.info'
backup failed unexpectedly!
my config file content is
[Misc]
snapshotName = /home/dbadmin/VerticaBkp
verticaConfig = True
restorePointLimit = 1
objects = yes
[Database]
dbName = tdadb
dbUser = dbadmin
dbPassword = tdadb
[Transmission]
[Mapping0]
dbNode = v_tdadb_node0001
backupHost = 172.20.0.238
backupDir = /opt/etl/tmp
Can u pls tell me where m going wrong .
i created configuration file using vbr.py
and now trying to take entire backup of my single node Vertica db using vbr.py
but m getting below error
./vbr.py --task backup --config-file /home/dbadmin/VerticaBkp.ini
Preparing...
Found Database port: 5433
Traceback (most recent call last):
File "./vbr.py", line 1956, in backup
prepareAll()
File "./vbr.py", line 1388, in prepareAll
getHostNameAndCatDir()
File "./vbr.py", line 1655, in getHostNameAndCatDir
saveInfoFile(os.path.abspath('%s/%s.info'%(g["tmpDir"], g["snapshotName"])))
File "./vbr.py", line 1546, in saveInfoFile
infoFile = open(infoFilePath, 'w')
IOError: [Errno 2] No such file or directory: '/tmp/vbr/home/dbadmin/VerticaBkp.info'
backup failed unexpectedly!
my config file content is
[Misc]
snapshotName = /home/dbadmin/VerticaBkp
verticaConfig = True
restorePointLimit = 1
objects = yes
[Database]
dbName = tdadb
dbUser = dbadmin
dbPassword = tdadb
[Transmission]
[Mapping0]
dbNode = v_tdadb_node0001
backupHost = 172.20.0.238
backupDir = /opt/etl/tmp
Can u pls tell me where m going wrong .