My misunderstanding. I read it as downloaded script, then nuked USB. Then tried opkg. Which would not work.I nuked everything - S.O.P
Like I said I started from scratch.
It's working now, but I'll really like to test again under the original conditions. If I have any more problems I'll come back.
Thank you for participating in the testing process @Ripshod. Let us know if you have success!I nuked everything - S.O.P
Like I said I started from scratch.
It's working now, but I'll really like to test again under the original conditions. If I have any more problems I'll come back.
I nuked everything on my test RT-AC86U and restored... everything was successful, and continues to run just fine! Let's hope you never have to use it, but know you have a good way of getting this environment back in case of a corrupt entware installation, or some other USB reliability issue.SUCCESS!!
Everything running smoothly now, and my first backup done. You can understand (after rebuilding my scripts) I'm hesitant to try the restore. I presume that's already been tested.
The backupmon.sh gets added as an alias to the profile.add file... sometimes it take a little while for it to start working... I haven't quite figured out what makes this tick... but after logging in/out on SSH a few times seems to do the trick... then you can call "backupmon" or "backupmon -setup". I still play it safe and prefer to use the long method when calling the script in other types of commands, like with cru... and go the route: "sh /jffs/scripts/backupmon.sh"Just one miniscule problem - "(or simply just execute 'backupmon')" doesn't work.
Absolutely... enjoy sleeping better at night! LOLWell done to everyone involved
And thanks all for your patience
STATUS: Finished copying BUexclusions script to /tmp/mnt/NAS/public/BACKUPS/Routers/SCHED_BU/AX86U.
STATUS: Finished copying restore instructions.txt to /tmp/mnt/NAS/public/BACKUPS/Routers/SCHED_BU/AX86U.
umount: can't unmount /tmp/mnt/NAS/public: Device or resource busy
STATUS: External Drive (\\192.168.1.22\public) unmounted successfully.
Yeah, that's a lazy error on my part... I'm not catching the return codes from a successful or unsuccessful mount/umount. Let me see what I can do to shore this up... in fact, I could probably throw it in a loop, and have it wait 10 seconds before trying again.@Viktor Jaep - After unmounting with "umount -l", my router's been running for eight hours so far - not really long enough to be sure, but looking good.
Something I thought - if the umount does fail, your script doesn't catch it.
The last few lines of output are as follows
Code:STATUS: Finished copying BUexclusions script to /tmp/mnt/NAS/public/BACKUPS/Routers/SCHED_BU/AX86U. STATUS: Finished copying restore instructions.txt to /tmp/mnt/NAS/public/BACKUPS/Routers/SCHED_BU/AX86U. umount: can't unmount /tmp/mnt/NAS/public: Device or resource busy STATUS: External Drive (\\192.168.1.22\public) unmounted successfully.
I assume you can catch the error msg from umount? (I'm not familiar with shell scripts).
If so, it would be really useful to have the error written to syslog.
Indeed it does work just fine - testedI nuked everything on my test RT-AC86U and restored... everything was successful
It appears after a certain amount of time. I didn't login/logout multiple times, I just left it an hour.sometimes it take a little while for it to start working
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/BACKUPMON/master/backupmon-0.7.sh" -o "/jffs/scripts/backupmon.sh" && chmod 755 "/jffs/scripts/backupmon.sh
Yes! Absolutely! Just make sure you label the new SSD with the same name you had on your former USB drive. Restore, reboot and you're back in business!Dumb question....so if I used BACKUPMON to create a backup from a perfectly working USB drive, once created and I decide to update my USB to a new SDD (once properly formatted), am I able to restore the backup (from the working USB) to the new SSD?
Thanks!
0.7 seems to be fine here on RT-AX86U with the share mapped on my old faithful Synology NAS, unmount went through first time with no errors, after the “settling”.Let me know how this works for you, for those who were seeing unmount issues?
Thanks for the report, @Stephen Harrington! I'll get working on the multiple backups/day suggestion next!0.7 seems to be fine here on RT-AX86U with the share mapped on my old faithful Synology NAS, unmount went through first time with no errors, after the “settling”.
Definitely possible. I'll get this added, along with the restore. You can also accomplish a manual backup by just running:Awesome script, I have a minor request if possible, under the setup utility screen, under operations, are you able to add a manual backup and maybe a restore operation shortcut?
sc: Setup & Configure
up: Check for updates
un: Uninstall
Possiby add:
bu: "Backup" or "Manual backup"
Thanks again for this!!!
backupmon
-or-
backupmon -backup
Thanks again.Definitely possible. I'll get this added, along with the restore. You can also accomplish a manual backup by just running:
Code:backupmon -or- backupmon -backup
The share is done via the Linux mount command. You can look at my script at the below link. It is a little more cleaned up a shorter. For a novice, maybe a little easier to follow.Thanks again.
Are you enabling AiDisk thru the router GUI to access the USB local network. If not, can you teach a noob on how you guys are enabling the network. I guess mainly how you're accessing options 1-5 thru the local network.
Thanks again and I apologize all the newbie questions!!!
Are you talking about how to create a network share? I've created a share on a local Windows server, but you can virtually create one off pretty much anything.Thanks again.
Are you enabling AiDisk thru the router GUI to access the USB local network. If not, can you teach a noob on how you guys are enabling the network. I guess mainly how you're accessing options 1-5 thru the local network.
Thanks again and I apologize all the newbie questions!!!
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/BACKUPMON/master/backupmon-0.8.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!