Page 1 of 1

Backup version identification

Posted: Thu Nov 20, 2025 2:49 am
by rockyd
Is it possible to identify what version firmware a backup file belongs to?

Re: Backup version identification

Posted: Thu Nov 20, 2025 5:24 am
by Lantis
Unpack it and look at /etc/config/gargoyle.
In the globals section there is a version parameter.

Re: Backup version identification

Posted: Fri Nov 21, 2025 3:32 am
by rockyd
Thanks

Is it possible to edit what ever script runs to to create the backup, to include stuff I have manually edited on the router?

So when I have to do a restore because of a router crash, I don't have to hunt down the changes I have made, which are thankfully on the forum?

One example of such a change is the roll back of ipv6 blocking when Tor is enabled.

Re: Backup version identification

Posted: Fri Nov 21, 2025 3:48 am
by Lantis
So these are changes to init files and maybe some web interface things?
I would modify /usr/lib/gargoyle/create_backup.sh
Line 21 can be appended to at the end to add your modifications.

Obviously be aware that if you’re moving to newer versions you might overwrite changes introduced by those versions, but if you’re restoring to the same then of course no problem.

You probably want to preserve the create_backup script itself as well once you have made the changes :)

https://github.com/ericpaulbishop/gargo ... _backup.sh

Re: Backup version identification

Posted: Fri Nov 21, 2025 3:54 am
by rockyd
Thanks, will see how I go with that idea.

Re: Backup version identification

Posted: Sat Nov 22, 2025 5:37 am
by rockyd
I think I have done it,
I have added the following to the backup

/etc/tor.firewall
/usr/lib/gargoyle/tempinfo.sh
/www/i18n/English-EN/dhcp.js
/usr/lib/gargoyle/create_backup.sh

and they seem to be in the backup.
that's for 1.15.X (Built 20240702-0125 git@ab461167) build

I have installed the latest Gargoyle build on my other Linksys WRT1900AC v2, but still have a bunch of configuring to do, once done will edit the create_backup file for that with what ever I needed to tweak on that, and give that a factory reset and restore.

Just another thought where do the plugin additions get saved? that might be worth backing up as well especially for the latest version.

Re: Backup version identification

Posted: Sat Nov 22, 2025 7:35 am
by Lantis
Plugins get installed into the root folder /plugin_root and are symlinked into the correct locations.
You would want to grab them out of plugin_root.

Re: Backup version identification

Posted: Sat Nov 22, 2025 5:34 pm
by rockyd
I have posted a question about another idea in the feature requests section.

viewtopic.php?t=18255