@Viktor Jaep yes, I’m on 388.4 as per my sig, and yes the updated 0.6 got rid of the mod probe error. Socket errors are still there, and I note that the script had trouble unmounting the share this time, but got it eventually?
Code:
BACKUPMON v0.6
Normal Backup starting in 10 seconds. Press [S]etup or [X] to override and enter RESTORE mode
Backing up to \\192.168.1.200\NetBackup mounted to /tmp/mnt/backups
Backup directory location: /asusrouter -- Frequency: Weekly
[Normal Backup Commencing]...
Messages:
STATUS: External Drive (\\192.168.1.200\NetBackup) mounted successfully under: /tmp/mnt/backups
STATUS: Daily Backup Directory successfully created.
STATUS: Finished backing up JFFS to /tmp/mnt/backups/asusrouter/Thu/jffs.tar.gz.
tar: ./entware/var/syslog-ng.ctl: socket ignored
tar: ./entware/var/run/syslog-ng/syslog-ng.ctl: socket ignored
STATUS: Finished backing up EXT Drive to /tmp/mnt/backups/asusrouter/Thu/AMTM-USB.tar.gz.
STATUS: Finished copying backupmon.sh script to /tmp/mnt/backups/asusrouter.
STATUS: Finished copying backupmon.cfg script to /tmp/mnt/backups/asusrouter.
STATUS: Finished copying exclusions script to /tmp/mnt/backups/asusrouter.
STATUS: Finished copying restore instructions.txt to /tmp/mnt/backups/asusrouter.
umount: can't unmount /tmp/mnt/backups: Device or resource busy
STATUS: External Drive (\\192.168.1.200\NetBackup) unmounted successfully.
Another efficient alternative over the “bloaty” SMB may be for your script to offer NFS as an alternative mounting strategy for those of us that can use it?
Up until yesterday when I started using BackupMon I had a very basic script I ran occasionally, based on rsync and advice and sample code from
@visortgw, which all happened in this thread for reference.
Looking for ideas/scripts to automate or “make more easy and convenient” (so I actually do it) the backup of my AMTM / Entware / Swap USB device, which in my case is a main/backup pair of Sandisk Max Endurance 64GB micro SD cards in matching Sandisk uSD-to-USB 3.0 adapters. I’m generally pretty...
www.snbforums.com
My very crude final code here:-
usb-backup-nas.sh
Code:
####
# Backup AMTM-USB (USB Port 1) SSD/uSD and JFFS to NAS via RSync
rsync -av --delete --progress --exclude 'myswap.swp' --password-file=/jffs/scripts/rsync_pass /tmp/mnt/AMTM-USB nas@192.168.1.200::NetBackup
rsync -av --delete --progress --password-file=/jffs/scripts/rsync_pass /jffs nas@192.168.1.200::NetBackup