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.8.22 -Nov 28, 2024- Backup/Restore your Router: JFFS + NVRAM + External USB Drive! CIFS/SMB/NFS! (Now available in AMTM!)

My primary backup config below.
The backup gets saved on the Network drive that gets mounted and unmounted on /tmp/mnt/backups
All works ok.
customizable parameters that affect the operation of the primary backup.
---------------------------------------------------------------------------------------

: BACKUPMON Version : 1.8.22
: Source Router Model : RT-AX86U_Pro
: Source Router Firmware/Build : 3006.102.4_0
(1) : Source EXT USB Drive Mount Point : /tmp/mnt/Merlin
(2) : Backup Target Media Type : Network
(3) : Backup Target Username : peter
(4) : Backup Target Password (ENC) : c21ic2FtYmEK
(5) : Backup Target Path : \\\\192.168.50.46\\RouterUSB
|---- NFS Mount Options? : N/A
(6) : Backup Target Mount Point : /tmp/mnt/backups
(7) : Backup Target Directory Path : /router/RT-AX86U_Pro_Backups
(8) : Backup Exclusion File : /jffs/addons/backupmon.d/pfexclusion.txt
(9) : Backup Swap File : No
(10) : Backup CIFS/SMB Version : 2.1
(11) : Backup Retention : Yearly
|---- Purge Backups : No
|---- Purge older than (days) : N/A
(12) : Backup/Restore Mode : Basic
(13) : Schedule Backups : No
|---- Time: : 2:30
|---- Scheduled Backup Mode : Backup Only
(14) : AMTM Email Notifications : Yes
|---- On Success : Yes
|---- On Failure : Yes
(15) : Secondary Backup Config Options : Disabled
|
(s) : Save Config & Exit
(e) : Exit & Discard Changes

For the secondary config
1 Enabled
2 USB
3 router user
4 router password
selection: 6
Select a Secondary Target USB Backup Drive Mount Point:
1. /dev/sda1 on /tmp/mnt/Merlin type ext4
2. /dev/sdb1 on /tmp/mnt/backups_usb type ext4

Enter selection:[1-2] [e=Exit]?
I choose 2

I thought it do a secondary backup to USB backups_usb
But by having the USB plugged into the router the primary backup errors umount: can't unmount /tmp/mnt/backups: Invalid argument which is where the network drive is mounted. I don't understand why the USB would cause this issue.

The reason I went down this secondary backup option was I don't always have my server on and I noticed with MerlinAU will try to do a backup before updating the firmware. And seeing the router is always on it can do the backup there if the server is off.
 
My primary backup config below.
The backup gets saved on the Network drive that gets mounted and unmounted on /tmp/mnt/backups
All works ok.
customizable parameters that affect the operation of the primary backup.
---------------------------------------------------------------------------------------

: BACKUPMON Version : 1.8.22
: Source Router Model : RT-AX86U_Pro
: Source Router Firmware/Build : 3006.102.4_0
(1) : Source EXT USB Drive Mount Point : /tmp/mnt/Merlin
(2) : Backup Target Media Type : Network
(3) : Backup Target Username : peter
(4) : Backup Target Password (ENC) : c21ic2FtYmEK
(5) : Backup Target Path : \\\\192.168.50.46\\RouterUSB
|---- NFS Mount Options? : N/A
(6) : Backup Target Mount Point : /tmp/mnt/backups
(7) : Backup Target Directory Path : /router/RT-AX86U_Pro_Backups
(8) : Backup Exclusion File : /jffs/addons/backupmon.d/pfexclusion.txt
(9) : Backup Swap File : No
(10) : Backup CIFS/SMB Version : 2.1
(11) : Backup Retention : Yearly
|---- Purge Backups : No
|---- Purge older than (days) : N/A
(12) : Backup/Restore Mode : Basic
(13) : Schedule Backups : No
|---- Time: : 2:30
|---- Scheduled Backup Mode : Backup Only
(14) : AMTM Email Notifications : Yes
|---- On Success : Yes
|---- On Failure : Yes
(15) : Secondary Backup Config Options : Disabled
|
(s) : Save Config & Exit
(e) : Exit & Discard Changes

For the secondary config
1 Enabled
2 USB
3 router user
4 router password
selection: 6
Select a Secondary Target USB Backup Drive Mount Point:
1. /dev/sda1 on /tmp/mnt/Merlin type ext4
2. /dev/sdb1 on /tmp/mnt/backups_usb type ext4

Enter selection:[1-2] [e=Exit]?
I choose 2

I thought it do a secondary backup to USB backups_usb
But by having the USB plugged into the router the primary backup errors umount: can't unmount /tmp/mnt/backups: Invalid argument which is where the network drive is mounted. I don't understand why the USB would cause this issue.

The reason I went down this secondary backup option was I don't always have my server on and I noticed with MerlinAU will try to do a backup before updating the firmware. And seeing the router is always on it can do the backup there if the server is off.
It has something to do with it being a local USB drive that you're connecting to over the network, and because it's a network connection, it will try to unmount it by default after the backup completes. I'm not sure why it would work when the 2nd USB isn't plugged in, but I would think it would totally remove your ability to use that USB drive after a backup completes, which wouldn't be good, if it also contains your swap file and entware.

What I'm probably going to do is create an option in the BACKUPMON config to not disconnect network mount points. That way your network share will act more like a physical USB drive, which it actually is.

The other way around this is to set your primary backup to USB (not network), and set your secondary backup to USB (like you already did)... and that should allow it to work without the mount point issues that you're seeing.
 

Similar 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!
Back
Top