Viktor Jaep
Part of the Furniture
Will make it so!@Viktor Jaep FYI. The reboot immediately after restoring the nvram should be mandatory not optional.
Will make it so!@Viktor Jaep FYI. The reboot immediately after restoring the nvram should be mandatory not optional.
Has anyone had the script successfully mount a share on a Synology NAS?
USERNAME="alan"
PASSWORD="???????????????"
UNC="\\\\192.168.1.22\\public"
EXTDRIVE="/tmp/mnt/ALANS-NAS/public"
mount -t cifs $UNC $EXTDRIVE -o "vers=2.1,username=${USERNAME},password=${PASSWORD}"
Thanks for the confirmation. I figured out that script did not like "$" as first character of password. OOPS!Yes, mine does with no problems, I created an account on the NAS just for the router to use.
Code:USERNAME="alan" PASSWORD="???????????????" UNC="\\\\192.168.1.22\\public" EXTDRIVE="/tmp/mnt/ALANS-NAS/public" mount -t cifs $UNC $EXTDRIVE -o "vers=2.1,username=${USERNAME},password=${PASSWORD}"
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/BACKUPMON/master/backupmon-1.12.sh" -o "/jffs/scripts/backupmon.sh" && chmod 755 "/jffs/scripts/backupmon.sh"
It's there if people want to hit (S)etup or (X) Restore if the backup kicks off... I would think that typically people wouldn't even be seeing this screen 99% of the time if it's running from CRON.Just a nit, but have you considered not having delay in launching manual backup when invoked via "backupmon -backup" command?
Yes, bypass altogether when using specific switch. I kept seeing it when I was trying to figure out why Synology NAS share wouldn't mount...It's there if people want to hit (S)etup or (X) Restore if the backup kicks off... I would think that typically people wouldn't even be seeing this screen 99% of the time if it's running from CRON.
I can add a key, like (C)ancel timer or (R)un now? Or are you talking about bypassing it altogether if you call it with the -backup switch?
This has been completed... will be in the next release.Yes, bypass altogether when using specific switch. I kept seeing it when I was trying to figure out why Synology NAS share wouldn't mount...
Sleep better at night knowing your environment is being safely backed up!Latest stable BACKUPMON script running smoothly....thanks again @Viktor Jaep for helping me get this setup correctly with my environment!!! I really appreciate it.
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/BACKUPMON/master/backupmon-1.14.sh" -o "/jffs/scripts/backupmon.sh" && chmod 755 "/jffs/scripts/backupmon.sh"
This update appears to break initial setup after new installation:OK... this "should" be the final update for a little while... let the suggestions keep coming though! This thing has really evolved! LOL
What's new?
v1.14 - (September 17, 2023)
- MAJOR: Added an auto-purge feature! Based on the existing purge feature from the operations section under the setup menu, when calling "sh backupmon.sh -purge", it will use the purge settings you have configured to trim your perpetual backups without any user input. You can utilize this switch in conjunction with a daily CRON job to keep your backups trimmed.
- ADDED: Thanks to @visortgw, added functionality to bypass the 10 second initial timer when using the -backup switch. If BACKUPMON is called without switches, it will use the 10 second timer.
- MINOR: General improvements to visual spacing, messaging and logging.
Download link (or update directly within BACKUPMON):
Code:curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/BACKUPMON/master/backupmon-1.14.sh" -o "/jffs/scripts/backupmon.sh" && chmod 755 "/jffs/scripts/backupmon.sh"
toor@nwind-B540:/jffs/scripts# sh /jffs/scripts/backupmon.sh -setup
ERROR: BACKUPMON is not configured. Please run 'backupmon.sh -setup' first.
toor@nwind-B540:/jffs/scripts#
Great catch, @visortgw ... Fixed!This update appears to break initial setup after new installation:
Code:toor@nwind-B540:/jffs/scripts# sh /jffs/scripts/backupmon.sh -setup ERROR: BACKUPMON is not configured. Please run 'backupmon.sh -setup' first. toor@nwind-B540:/jffs/scripts#
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/BACKUPMON/master/backupmon-1.15.sh" -o "/jffs/scripts/backupmon.sh" && chmod 755 "/jffs/scripts/backupmon.sh"
He will reach out when a project is deemed mature and utilitarian enough to be added...has this been added to amtm yet by @thelonelycoder ?
backupmon -purge
ERROR: Perpetual backups are not configured. Please check your configuration. Exiting.
----------------------------------------------------------------
Configuration Utility Options
----------------------------------------------------------------
: Source Router Model :RT-AX86U
1 : Backup Target Username :(hidden)
2 : Backup Target Password :(hidden)
3 : Backup Target UNC Path :\\\\xxx.xxx.x.xxx\\NetBackup
4 : Local Drive Mount Path :/tmp/mnt/backups
5 : Backup Target Dir Path :/(hidden)
6 : Backup Exclusion File Name :/jffs/addons/backupmon.d/exclusions
7 : Schedule Backups? :Yes
|-- Time: :4:30
8 : Backup Frequency? :Perpetual
|-- Purge Backups? :Yes
|-- Purge older than (days): :90
9 : Backup/Restore Mode :Basic
|
s : Save & Exit
e : Exit & Discard Changes
----------------------------------------------------------------
Of course! Argh! I will check this out and see if I can replicate this. I tested the purge switch without any issues before... will see what's up!@Viktor Jaep if I run:-
Bash:backupmon -purge
I get:-
Code:ERROR: Perpetual backups are not configured. Please check your configuration. Exiting.
But of course they are:-
Code:---------------------------------------------------------------- Configuration Utility Options ---------------------------------------------------------------- : Source Router Model :RT-AX86U 1 : Backup Target Username :(hidden) 2 : Backup Target Password :(hidden) 3 : Backup Target UNC Path :\\\\xxx.xxx.x.xxx\\NetBackup 4 : Local Drive Mount Path :/tmp/mnt/backups 5 : Backup Target Dir Path :/(hidden) 6 : Backup Exclusion File Name :/jffs/addons/backupmon.d/exclusions 7 : Schedule Backups? :Yes |-- Time: :4:30 8 : Backup Frequency? :Perpetual |-- Purge Backups? :Yes |-- Purge older than (days): :90 9 : Backup/Restore Mode :Basic | s : Save & Exit e : Exit & Discard Changes ----------------------------------------------------------------
A manual run of "pg" from the menu seems to be OK though ...
nice!Of course! Argh! I will check this out and see if I can replicate this. I tested the purge switch without any issues before... will see what's up!
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/BACKUPMON/master/backupmon-1.16.sh" -o "/jffs/scripts/backupmon.sh" && chmod 755 "/jffs/scripts/backupmon.sh"
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!