Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

put netbox restore database functionality inside container #294

Closed
mmguero opened this issue Nov 15, 2023 · 0 comments
Closed

put netbox restore database functionality inside container #294

mmguero opened this issue Nov 15, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request netbox Related to Malcolm's use of NetBox
Milestone

Comments

@mmguero
Copy link
Collaborator

mmguero commented Nov 15, 2023

If you have a previous NetBox database backup (created with netbox-backup as described here) that you would like automatically restored on startup, that .gz file may be manually copied to the ./netbox/preload directory. Upon startup that file will be extracted and used to populate the NetBox database, taking priority over the other preload files. This process does not remove the .gz file from the directory upon restoring it; it will be restored again on subsequent restarts unless manually removed.

With the logic moved to inside the container, I may remove it from the control.py script completely and just trigger the internal container logic

first commit, mmguero-dev/Malcolm@1ceddc7

@mmguero mmguero added enhancement New feature or request netbox Related to Malcolm's use of NetBox labels Nov 15, 2023
@mmguero mmguero added this to the v23.11.0 milestone Nov 15, 2023
@mmguero mmguero self-assigned this Nov 15, 2023
mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Nov 15, 2023
mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Nov 15, 2023
mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Nov 16, 2023
mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Nov 21, 2023
@mmguero mmguero closed this as completed Nov 21, 2023
This was referenced Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request netbox Related to Malcolm's use of NetBox
Projects
Status: Released
Development

No branches or pull requests

1 participant