{"id":23467646,"url":"https://github.com/nomaster/backup-ubnt-ansible","last_synced_at":"2025-04-12T19:36:11.332Z","repository":{"id":42425944,"uuid":"232557549","full_name":"nomaster/backup-ubnt-ansible","owner":"nomaster","description":"Backup Ubiquiti routers and switches with Ansible","archived":false,"fork":false,"pushed_at":"2022-07-08T21:49:20.000Z","size":4,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T04:23:29.080Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nomaster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-08T12:23:38.000Z","updated_at":"2022-07-08T21:49:15.000Z","dependencies_parsed_at":"2022-09-08T12:00:47.357Z","dependency_job_id":null,"html_url":"https://github.com/nomaster/backup-ubnt-ansible","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomaster%2Fbackup-ubnt-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomaster%2Fbackup-ubnt-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomaster%2Fbackup-ubnt-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomaster%2Fbackup-ubnt-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nomaster","download_url":"https://codeload.github.com/nomaster/backup-ubnt-ansible/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248623272,"owners_count":21135218,"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":[],"created_at":"2024-12-24T12:51:09.557Z","updated_at":"2025-04-12T19:36:11.305Z","avatar_url":"https://github.com/nomaster.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backup Ubiquiti Networks devices\n\n## Description\n\nThis repository shows how to backup configration of Ubiquiti Networks devices with Ansible. The list of devices, as well as the passwords to access them, are pulled from NetBox.\n\nWe use native Ansible modules to fetch configuration for each device and store them in `backup/[hostname].cfg`.\n\nThe examples here apply to Freifunk Düsseldorf. Please adjust the variables to your installation.\n\n## Requirements\n\nInstall Python 3.6 or higher and then the requirements with the following command:\n\n```\npip install --user -r requirements.txt\n```\n\nSet an environment variable with the path of our NetBox installation:\n\n```\nexport NETBOX_API=https://netbox.freifunk-duesseldorf.de\n```\n\nCreate a [NetBox token](https://netbox.freifunk-duesseldorf.de/user/api-tokens/) and set a environment variable in your shell:\n\n```\nexport NETBOX_TOKEN=[your token]\n```\n\nFinally, create a [NetBox secret key](https://netbox.freifunk-duesseldorf.de/user/user-key/) and put it in a file:\n\n```\nexport NETBOX_KEY_PATH=[path to your key file]\n```\n\nThen you're all set!\n\n## Usage\n\nAfter changing configuration on a device, run the following command to fetch its configuration:\n\n```\nansible-playbook fetch.yml\n```\n\nThen commit the changes in the backup folder to git\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomaster%2Fbackup-ubnt-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnomaster%2Fbackup-ubnt-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomaster%2Fbackup-ubnt-ansible/lists"}