[英]Trying to have postgres database backup by backup rubygem nad ruby on rails
My my_backup.rb=> 我的my_backup.rb =>
database PostgreSQL do |db|
db.name = "xxxxx"
db.username = "postgres"
db.password = "*********"
db.host = "localhost"
db.port = 5432
end
store_with SCP do |server|
server.username = "username"
server.password = "password"
server.ip = "xxx.xxx.xxx.xxx"
server.port = 300
server.path = "~/backups/"
server.keep = 5
#server.passive_mode = false
end
And having this error=> 并出现此错误=>
CleanerError: Cleanup Warning The temporary backup folder '/home/ilfs/Backup/.tmp' appears to contain the package files from the previous backup! /home/ilfs/Backup/.tmp/2012.11.26.17.34.07.my_backup.tar These files will now be removed. Please check the log for messages and/or your notifications concerning this backup: 'Description for my_backup (my_backup)' The temporary files which had to be removed should not have existed. Performing Backup for 'Description for my_backup (my_backup)'! [ backup 3.0.27 : ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02 ] Database::PostgreSQL started dumping and archiving 'ces_dev'. Using Compressor::Bzip2 for compression. Command: '/bin/bzip2' Ext: '.bz2' Database::PostgreSQL Complete! Packaging the backup files... Splitter configured with a chunk size of 250MB. Packaging Complete! Cleaning up the temporary files... ModelError: Backup for Description for my_backup (my_backup) Failed! An Error occured which has caused this Backup to abort before completion. Reason: OpenSSL::PKey::PKeyError not a public key "/home/sumanta/.ssh/id_rsa.pub"
can anybody please help with a quick reply? 有人可以帮忙快速回复吗?
Well the problem was with postgress - you have to add your ip in pg_hba.conf => host all ip trust/md5(depend on version). 那么问题出在postgress上-您必须在pg_hba.conf中添加您的IP =>托管所有ip trust / md5(取决于版本)。 And thanks to a_horse_with_no_name for editing it in proper format
还要感谢a_horse_with_no_name以正确的格式对其进行编辑
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.