eduardogsilva / routerfleet

RouterFleet: An open-source solution for centralized router and network equipment management. Initially focused on Mikrotik devices, it offers simplified backups, updates, and security. Perfect for managing a fleet of devices efficiently. Join us in evolving RouterFleet's capabilities
MIT License
65 stars 3 forks source link

FR:Restore binary backup to ROS devices #19

Open hellofaduck opened 4 months ago

hellofaduck commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 1 month ago

where does routerfleet saves the backups of the mikrotik router

eduardogsilva commented 1 month ago

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!