What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

BACKUPMON BACKUPMON v1.9.1 -Oct 28, 2025- Backup/Restore your Router: JFFS + NVRAM + External USB Drive! CIFS/SMB/NFS! (Available in AMTM!)

This would eliminate need to load nvram backup onto router.

If this is in reference to my post with RMerlin, I like the idea!
Just for reference though; I wasn't going to load the backup into my router anyways to get the value.
I use an app called "WRT Settings" to read and/or modify the nvram values manually.

Seems it's out of support but has continued to work for me: https://medo64.com/wrtsettings/

1761614478493.png
 
Last edited:
If this is in reference to my post with RMerlin, I like the idea!
Just for reference though; I wasn't going to load the backup into my router anyways to get the value.
I use an app called "WRT Settings" to read and/or modify the nvram values manually.

Seems it's out of support but has continued to work for me: https://medo64.com/wrtsettings/

View attachment 68583
Yes, that is exactly where my request originated. Also, it would allow one to easily perform diffs over time of nvram values.
 
If this is in reference to my post with RMerlin, I like the idea!
Just for reference though; I wasn't going to load the backup into my router anyways to get the value.
I use an app called "WRT Settings" to read and/or modify the nvram values manually.

Seems it's out of support but has continued to work for me: https://medo64.com/wrtsettings/



FYI - just to be safe, I "rolled my own" version of this a while back in Excel. Not sure if (or whether) I can share macro-enabled Excel file, but here are the pieces.

The main sheet is shown here (formulas shown):

asus_cfg_reader.xlsm.png


And the macro that runs when the button is pushed is here:
Code:
Sub Button1_Click()
        Dim byteArr() As Byte
        Dim fileInt As Integer: fileInt = FreeFile
        Dim datasize As Long
        Filename = Range("D1").Value
        Open Filename For Binary Access Read As #fileInt
        filesize = LOF(fileInt)
        ReDim byteArr(1 To LOF(fileInt))
        Get #fileInt, , byteArr
        Close #fileInt
        Range("A:A").ClearContents
        For i = 1 To 8
            Cells(3 + i, 1).Value = byteArr(i)
        Next i

        Range("D3") = filesize
        Range("D4") = Chr$(byteArr(1)) + Chr$(byteArr(2)) + Chr$(byteArr(3)) + Chr$(byteArr(4))
        datasize = byteArr(7)
        datasize = datasize * 256 + byteArr(6)
        datasize = datasize * 256 + byteArr(5)
        Range("D10") = datasize
        randnum = byteArr(8)
        Range("D11") = randnum
        rownum = 13
        strdata = ""

        For i = 9 To 9 + datasize - 1
            If byteArr(i) < 253 Then
                 strdata = strdata + ChrXXX(255 + randnum - byteArr(i)) <- remove "XXX", forum bug
            Else
                Cells(rownum, 1) = strdata
                rownum = rownum + 1
                strdata = ""
            End If
        Next i
                
    End Sub

Not sure how universal this is, but it worked for all my cfg files.


Rung
 
Quick and easy... that's how I like them! :) Coming your way, BACKUPMON v1.9.1! Huge thanks to @visortgw for the excellent feedback!

What's new?
v1.9.1 - (October 28, 2025)
- PATCH:
Through keen observation, @visortgw suggested writing the nvram.txt reference file to the actual backup folder in order to keep that as part of the archive, instead of writing a copy of this file to the root of the backup folder. Makes a ton of sense, and an easy enough quick patch! Thank you for the great suggestion :) (Please remember to delete the remaining nvram.txt under the root of your main backup folder at your convenience.)
- PATCH: Removed some legacy code and functions around trying to detect if the share password was formatted in plaintext, and would prompt the user to change it to a base64-encoded password. We have been using the base64-encoded methodology for long enough, that this additional code and checks were no longer needed.

Download link (or update directly within AMTM/BACKUPMON):
Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/BACKUPMON/master/backupmon.sh" -o "/jffs/scripts/backupmon.sh" && chmod 755 "/jffs/scripts/backupmon.sh"

Significant Screenshots:
<none today - mainly internal code changes>
 
your backup tool not working: mount: mounting \\192.168.50.75\sambashare on /tmp/mnt/primary failed: Permission denied tried different folder /tmp/mnt/backups same error maybe router specific issue not sure will test on different one later.
(bk) : Run a Manual Backup; failing to mount, the test script was successful, and mounting manually was successful too. I am not sure what the problem is.
 
Last edited:
your backup tool not working: mount: mounting \\192.168.50.75\sambashare on /tmp/mnt/primary failed: Permission denied tried different folder /tmp/mnt/backups same error maybe router specific issue not sure will test on different one later.
(bk) : Run a Manual Backup; failing to mount, the test script was successful, and mounting manually was successful too. I am not sure what the problem is.
Could you please share a screenshot of both your configuration screen (redact anything critical if needed), along with what the output shows during a backup... and a screenshot of the backup test where it shows that you've "imported" your primary backup settings, and what its results are? If it works for the test, it should work for the primary/secondary backup, as long as those were done exactly the same.
 
Could you please share a screenshot of both your configuration screen (redact anything critical if needed), along with what the output shows during a backup... and a screenshot of the backup test where it shows that you've "imported" your primary backup settings, and what its results are? If it works for the test, it should work for the primary/secondary backup, as long as those were done exactly the same.
1.jpg
2.jpg
3.png
 
I'm going to assume your username, password, and backup target directory paths are *exactly* the same between the two, since I can't see these?

Could you try running this statement from an SSH prompt?


Code:
modprobe md4

mount -t cifs "\\\\192.168.50.75\\sambashare" "/tmp/mnt/backups" -o "vers=2.1,username=USERNAME,password=PASSWORD"

cd /tmp/mnt/backups

ls

cd router

cd RT-#####_Backups

Does this all work, and can you get to all these folders?

Also, what kind of storage device (make, model) is 192.168.50.75?
 
I'm going to assume your username, password, and backup target directory paths are *exactly* the same between the two, since I can't see these?

Could you try running this statement from an SSH prompt?


Code:
modprobe md4

mount -t cifs "\\\\192.168.50.75\\sambashare" "/tmp/mnt/backups" -o "vers=2.1,username=USERNAME,password=PASSWORD"

cd /tmp/mnt/backups

ls

cd router

cd RT-#####_Backups

Does this all work, and can you get to all these folders?

Also, what kind of storage device (make, model) is 192.168.50.75?
yes all the same; yes I see the folders working fine; The PC is running samba on Arch.
 
yes all the same; yes I see the folders working fine; The PC is running samba on Arch.
There is zero difference between what the test screen does vs. the primary backup. They both use the same commands.

From the (ts) test screen, did you press the (p) key to import your primary backup settings, and then ran the (t) test without making any modifications?
 
There is zero difference between what the test screen does vs. the primary backup. They both use the same commands.

From the (ts) test screen, did you press the (p) key to import your primary backup settings, and then ran the (t) test without making any modifications?
I did change only the password, but for some reason, it’s not importing itself. "There is zero difference between what the test screen does vs. the primary backup" If that’s the case, why am I getting 'permission denied' errors? It doesn’t make any sense.
 
I did change only the password, but for some reason, it’s not importing itself. "There is zero difference between what the test screen does vs. the primary backup" If that’s the case, why am I getting 'permission denied' errors? It doesn’t make any sense.
Try resetting your password, and save your backupmon settings. Try a different password that is complex, doesn't use spaces, etc. Reset your password on the Arch side as well. Then try again. I've never seen the import function not work.
 
Try resetting your password, and save your backupmon settings. Try a different password that is complex, doesn't use spaces, etc. Reset your password on the Arch side as well. Then try again. I've never seen the import function not work.
The issue was that the password was encoded in the main configuration, while in the test, it was in clear text. This discrepancy made it unclear why it didn't work. It's sorted now! It's better to type the password than to copy it :)
 
The issue was that the password was encoded in the main configuration, while in the test, it was in clear text. This discrepancy made it unclear why it didn't work. It's sorted now! It's better to type the password than to copy it :)
Glad you figured it out, @Tadas... Enjoy! ;)
 
Thank you, and I'm sorry for the quick judgment. It’s a great piece of code! :)
Much appreciated! Yeah, I forgot to mention above... when you import the (p) primary backup settings into the (ts) backup tester, it decodes your encoded password and shows it in plain text. It was meant to help make things easier (not harder) from a troubleshooting perspective. lol ;)
 
Much appreciated! Yeah, I forgot to mention above... when you import the (p) primary backup settings into the (ts) backup tester, it decodes your encoded password and shows it in plain text. It was meant to help make things easier (not harder) from a troubleshooting perspective. lol ;)
Haha, that’s amusing! I actually used an encoded password, so I guess I didn't quite achieve the level of security I hoped for! 😂 It’s a funny reminder of how things can sometimes go sideways. Thanks for the heads-up!
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Back
Top