I have sample script which take dump backup using XMLRPC, This script works well with intra-network(Internal network), but having Access denied Error while applying on inter-network.
Here is my script
import base64 import xmlrpclib sock = xmlrpclib.ServerProxy('http://serverip:8888/xmlrpc/db') #Real public IP all_database = sock.list() for database in all_database: file_path = "/home/serpentcs/backup/" #Give path of folder where backup file will be store file_path += database file_path += ".dump" backup_db_file = open(file_path, 'wb') backup_db_file.write(base64.b64decode(sock.dump('admin', database))) #admin is master password in my case backup_db_file.close()
Does anybody has idea about this? help will be appreciated.
Thanks & Regards,
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 4/8/15, 10:16 PM|
|Seen: 840 times|
|Last updated: 4/15/15, 7:20 AM|