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

FR:Restore binary backup to ROS devices #19

Open
hellofaduck opened this issue Apr 10, 2024 · 6 comments
Open

FR:Restore binary backup to ROS devices #19

hellofaduck opened this issue Apr 10, 2024 · 6 comments

Comments

@hellofaduck
Copy link

Since routerfleet has administrator rights on devices, it would be great if it was possible to restore a binary backup on devices from which it was made, and possibly on other devices as well!
It's not hard to do, just upload the file via scp and execute the command:
/system backup load name=flash/nightly_backup.backup password=""
y

@eduardogsilva
Copy link
Owner

Hello!

I intend to implement this in the near future. I'm just cautious because a wrong restore can break things or leave the router without connectivity.
I will leave this issue open for now.

Thanks

@hellofaduck
Copy link
Author

I agree, this is a potentially dangerous action, I think some sort of safety mechanism like an additional confirmation, or an additional switch could be added to make the user confirm that they are aware of what they are doing

@j-shalom
Copy link

where does routerfleet saves the backups of the mikrotik router

@eduardogsilva
Copy link
Owner

The binary backups are stored on the docker volume: routerfleet_media_root

The default location on the docker host is:
/var/lib/docker/volumes/routerfleet_media_root/_data/backups

If you remove or change any backup on this folder, it will not reflect on the web interface and it will result in a broken link.

You can download the backups from the web interface if needed.

Cheers!

@kalazino
Copy link

Hi,
is it possible to change the path where the backups are saved, perhaps with an NFS/SMB share?
Thank you

@eduardogsilva
Copy link
Owner

Hi, is it possible to change the path where the backups are saved, perhaps with an NFS/SMB share? Thank you

It's possible changing the docker storage configurations. Please, open a new discussion for this issue if you need help.
Please, keep this topic to discuss only about backup restore function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants