{"id":21959310,"url":"https://github.com/sbarbett/udns_snapshot","last_synced_at":"2025-03-22T20:11:51.530Z","repository":{"id":250382935,"uuid":"709280692","full_name":"sbarbett/udns_snapshot","owner":"sbarbett","description":"A routine for creating a snapshot of all your zones in UltraDNS","archived":false,"fork":false,"pushed_at":"2024-07-31T18:33:50.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T23:47:33.675Z","etag":null,"topics":["dns","sysadmin-tool","ultradns","vercara"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sbarbett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-24T12:00:07.000Z","updated_at":"2024-07-31T18:33:53.000Z","dependencies_parsed_at":"2024-11-29T09:40:08.224Z","dependency_job_id":null,"html_url":"https://github.com/sbarbett/udns_snapshot","commit_stats":null,"previous_names":["sbarbett/udns_snapshot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbarbett%2Fudns_snapshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbarbett%2Fudns_snapshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbarbett%2Fudns_snapshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbarbett%2Fudns_snapshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbarbett","download_url":"https://codeload.github.com/sbarbett/udns_snapshot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245013996,"owners_count":20547181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dns","sysadmin-tool","ultradns","vercara"],"created_at":"2024-11-29T09:27:36.619Z","updated_at":"2025-03-22T20:11:51.510Z","avatar_url":"https://github.com/sbarbett.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# udns_snapshot\n\nThis script provides a basic CLI for taking snapshots of all zones within an UltraDNS account. Additionally, there's functionality to restore zones to their most recent snapshots.\n\n## Features\n\n- **Snapshot All Zones**: Quickly generate snapshots for all zones in the UltraDNS account.\n- **Restore Zones from Snapshots**: Restore all zones to their most recent snapshot.\n- **Selective Zone Processing**: Specify a file to process only a subset of zones.\n  \n## Prerequisites\n\n- Python 3.x\n- Libraries: \n\t- `requests` (should be automatically installed with `ultra_auth`)\n\t- `tqdm` \n\t- `ultra_auth`\n\n## Usage\n\n1. Clone the repository:\n\n   ```\n   git clone https://github.com/sbarbett/udns_snapshot.git\n   ```\n\n2. Navigate to the directory:\n\n   ```\n   cd udns_snapshot\n   ```\n\n3. Make sure the script is executable:\n\n   ```\n   chmod +x src/snapshot.py\n   ```\n\n4. Run the script:\n\n   ```\n   ./src/snapshot.py [options]\n   ```\n\n   Options include:\n\n   - Authentication:\n     - `-u` or `--username`: Username for authentication.\n     - `-p` or `--password`: Password for authentication.\n     - `-t` or `--token`: Directly pass the Bearer token.\n     - `-r` or `--refresh-token`: Pass the Refresh token (optional with --token).\n\n   - Actions:\n     - `-s` or `--restore`: Restore zones to their most recent snapshot.\n     - `-l` or `--log-file`: Specify the log file name (default is `output.log`).\n     - `-d` or `--download`: Download a zip file with all existing snapshots.\n     - `-z` or `--zones-file`: Specify a file with a list of zones to process.\n     - `-a` or `--all-zones`: Process every zone in an account (use with caution).\n\n## Notes\n\n- It's essential to use this script with caution, especially the restore functionality, as it's a destructive action that can't be undone.\n- By default, the script writes logs to `output.log`. You can change this with the `-l` option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbarbett%2Fudns_snapshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbarbett%2Fudns_snapshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbarbett%2Fudns_snapshot/lists"}