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

Make binary backups #4

Closed
gdsotirov opened this issue May 9, 2021 · 2 comments
Closed

Make binary backups #4

gdsotirov opened this issue May 9, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@gdsotirov
Copy link
Owner

gdsotirov commented May 9, 2021

RouterOS binary backups are very useful to quickly and effortlessly restore device's configuration. Whenever there is a change in device's configuration (detected from differences in export files) a binary backup should be made as well. These files are binary (i.e. not useful for comparing configuration changes), so perhaps only the last one should be kept for the case where urgent restore needs to be done.

gdsotirov added a commit that referenced this issue May 9, 2021
Add making and retrieval of binary backups for quick and effortless
restore of device's configuration. The backup is kept only if there is
difference with last configuration export.

A new method make_backup is added to SecureTransport class. The method
executes '/system backup save' command. The method get_export of the
same class is renamed to get_file and its first argument now specifies
remote file to download, so it could be used in general.

See https://wiki.mikrotik.com/wiki/Manual:System/Backup
@gdsotirov
Copy link
Owner Author

Implemented, but should also consider the case where no backup exists at all. In this case the backup should be saved even if there is no differences in the export.

@gdsotirov
Copy link
Owner Author

Backup clean up added with 534cf85.

@gdsotirov gdsotirov added the enhancement New feature or request label May 10, 2021
@gdsotirov gdsotirov self-assigned this May 10, 2021
gdsotirov added a commit that referenced this issue May 10, 2021
Identify old system backups and remove new system backup only if old
system backups exists even there are no differences. This covers
the case where no system backup exists at all and concludes #4.
@gdsotirov gdsotirov added this to the 2021.05 milestone May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant