Permalink
Browse files

Added util to backup everydns records for all domains.

  • Loading branch information...
1 parent f6a3101 commit f38b127e80ad4359e6dcdf142f9bf961171494df @amit committed Nov 17, 2009
Showing with 416 additions and 0 deletions.
  1. +12 −0 backup_all.py
  2. +3 −0 config.yml
  3. +401 −0 everydnslib.py
View
@@ -0,0 +1,12 @@
+import everydnslib,yaml
+from time import strftime
+filename="dnsbackup-"+strftime("%Y%m%d-%H%M%S")+".yml"
+data=yaml.load(file('config.yml').read())
+e=everydnslib.EveryDNS(data['username'], data['password'])
+records = e.cache_domains()
+for record in records:
+ record['records'] = e.cache_records(record['domain'])
+f= open(filename, "w")
+yaml.dump(records,f)
+f.close()
+
View
@@ -0,0 +1,3 @@
+username: your_username
+password: your_password
+
Oops, something went wrong.

0 comments on commit f38b127

Please sign in to comment.