Coder Social home page Coder Social logo

route53-transfer's Introduction

route53-transfer

Backup and restore Route53 zones, or transfer between AWS accounts.

Installation

pip install route53-transfer

Usage

Backup a zone

Backup the example.com zone to a CSV file.

route53-transfer dump example.com backup.csv

Use STDOUT instead of a file

route53-transfer dump example.com -

Restore a zone

Restore the example.com zone from a CSV file.

route53-transfer load example.com backup.csv

Use - to load from STDIN instead.

Migrate between accounts

Use the command line switches to override the access and secret keys. Dump from one account, load into another.

route53-transfer --access-key-id=ACCOUNT1 --secret-key=SECRET dump example.com
route53-transfer --access-key-id=ACCOUNT2 --secret-key=SECRET load example.com

Working with private zones

If hosting split-horizon zones, use --private to distinguish private domains.

route53-transfer --private dump example.com example-private.csv
route53-transfer dump example.com example-public.csv

When loading private zones, the target VPC region (--vpc-region) and VPC id (--vpc-id) must be specified.

route53-transfer --private --vpc-region {target vpc region} --vpc-id {target vpc id} load example.com example-private.csv

In Python

Use the load and dump functions to move data.

from StringIO import StringIO
from route53_transfer import load, dump
from boto import route53

out = StringIO()
con = route53.connect_to_region('universal')
dump(con, 'example.com', out)

route53-transfer's People

Contributors

cosmin avatar shirkey avatar lra avatar blaineataffirm avatar askulkarni2 avatar gkope avatar jumping avatar migurski avatar vdemin avatar ismferd avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.