GithubHelp home page GithubHelp logo

lfaoro / flares Goto Github PK

View Code? Open in Web Editor NEW
186.0 186.0 15.0 2.58 MB

Flares ๐Ÿ”ฅ is a CloudFlare DNS backup tool

License: BSD 3-Clause "New" or "Revised" License

Go 49.97% Dockerfile 1.81% Makefile 3.79% Shell 44.43%
backup cloudflare dns export

flares's People

Contributors

amalucelli avatar bdougherty avatar dependabot[bot] avatar fgribreau avatar fossabot avatar grahamhayes avatar krzee avatar lfaoro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flares's Issues

Add flares to brew.sh package manager

What would you like?
to install flares directly from the command line using brew install flares

Describe the solution you'd like

  • add a brew folder to the repo
  • add a brew/flares.rb manifest that builds flares using the latest tagged version
  • submit the manifest to brew.sh

Describe alternatives you've considered (if any)

Additional context (if you want)
I have no idea how to submit a CLI app to brew.sh, although would like to learn the process and automate it

Not exporting all zones

It looks like the fix for #9 no longer works. Running flares -a -e does not fetch all pages and therefore does not fetch all zones. I have a fix for this incoming.

Push a new release

@lfaoro do you plan to push a new release with the 2 fixes that were merged a few months ago? I use your code, and would like to recommend it to others, but some may struggle to build their own script from your unreleased changes (which are needed for things to work properly).

Thanks for considering.

Export all should export all zones

What would you like?
when runninng docker run -it --rm -e CF_API_KEY="$CF_API_KEY" -e CF_API_EMAIL="$CF_API_EMAIL" lfaoro/flares --all it should export all zones and not only 20

Describe the solution you'd like
all zones are exported

Describe alternatives you've considered (if any)

Additional context (if you want)

Folder for --export --all

Hello. Your tool is very useful. But i can't understand one thing and need your help.
I want export to files by zones.
When i use docker run with --export -all, i see:
BIND data for domain successfully exported.
But where is files? seems like inside container

I also tried with Go make install. But after this, still: Command 'flares' not found

Export to s3

What would you like?
Export to s3 bucket

Describe the solution you'd like
It would be great if I could export records to bucket without using awscli

Describe alternatives you've considered (if any)

Additional context (if you want)

`domain` variable defined before `WaitGroup` causes all exports to be written to the same file.

โ€ข100% โžœ ~/go/bin/flares --key $KEY --email $EMAIL --all --export --debug
62c67f0155e6584b685bad9697e4d2ca domain.one
c4c380fae1e4ddd3c5459d791fed497c domain.two
a6721c2a9fc97dbae7d30a93d0379cce domain.three
0ce6adf7dd7ab158d6f83895723f6885 domain.four
BIND data for domain.four successfully exported
BIND data for domain.four successfully exported
BIND data for domain.four successfully exported
BIND data for domain.four successfully exported

A single file (domain.four) is created.

Removing the sync.WaitGroup() from the all fork here fixes this issue: https://github.com/lfaoro/flares/blob/master/cmd/flares/main.go#L100

โ€ข100% โžœ ~/go/bin/flares --key $KEY --email $EMAIL --all --export --debug
62c67f0155e6584b685bad9697e4d2ca domain.one
BIND data for domain.one successfully exported
c4c380fae1e4ddd3c5459d791fed497c domain.two
BIND data for domain.two successfully exported
a6721c2a9fc97dbae7d30a93d0379cce domain.three
BIND data for domain.three successfully exported
0ce6adf7dd7ab158d6f83895723f6885 domain.four
BIND data for domain.four successfully exported

All four files are correctly created as well.

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.