soana

Community Developer
  • Posts

    230
  • Joined

  • Last visited

Converted

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

soana's Achievements

Explorer

Explorer (4/14)

7

Reputation

  1. Here is my script I did not put too much time into it since it did the job from the first time. Line 4 and 5 define the source and the destination. The backup (rsync) and notification bits are in the ACTION block #!/bin/bash PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin source="/mnt/user/Personal/" destination="/mnt/disks/My_Book_3Tb/" ## Available variables: # AVAIL : available space # USED : used space # SIZE : partition size # SERIAL : disk serial number # ACTION : if mounting, ADD; if unmounting, UNMOUNT; if unmounted, REMOVE; if error, ERROR_MOUNT, ERROR_UNMOUNT # MOUNTPOINT : where the partition is mounted # FSTYPE : partition filesystem # LABEL : partition label # DEVICE : partition device, e.g /dev/sda1 # OWNER : "udev" if executed by UDEV, otherwise "user" # PROG_NAME : program name of this script # LOGFILE : log file for this script case $ACTION in 'ADD' ) # do your stuff here /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Device mounted" -i "normal" date >/var/log/My_Book_3Tb_Backup.log /usr/bin/rsync -avrtH --delete $source $destination >>/var/log/My_Book_3Tb_Backup.log /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "My_Book_3Tb" -d "Backup to My_Book_3Tb finished see /var/log/My_Book_3Tb_Backup.log for details" -i "normal" # This will refresh the UD webpage when the script is finished. /usr/local/sbin/rc.unassigned refresh $DEVICE ;; 'UNMOUNT' ) # do your stuff here /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Device unmounting" -i "normal" ;; 'REMOVE' ) # do your stuff here /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Device unmounted" -i "normal" ;; 'ERROR_MOUNT' ) # do your stuff here /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Error mounting device" -i "alert" ;; 'ERROR_UNMOUNT' ) # do your stuff here /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Unassigned Devices" -d "Error unmounting device" -i "alert" ;; esac
  2. The unassigned devices plugin has a very nice option to run a script when external drive is plugged in. Use the default script button to start with a default script and build from there, I have something similar build but not with encryption.
  3. I did two array stop/start and no issues, next I did a reboot and no more parity check started. Not sure why.
  4. Pre-shutdown diagnostics files attached. tower-diagnostics-20210315-0924.zip
  5. Thanks JorgeB but the change to 100s did not do the trick.
  6. This seems to be a recurring issue for me - several months before I had this issue and for some time it seemed to go away now it's back again. I did take the flash drive and run a checkdisk with no errors, I even registered a new flash drive and the problem is still there. Attaching the diagnostics file. Not sure why this message below was generated, I did a shutdown using the icons from the dashboard Mar 15 09:29:49 Tower emhttpd: unclean shutdown detected tower-diagnostics-20210315-0938.zip
  7. Got the following error: cat: rom: Input/output eror Did powerdown the server stopped docker and had all VM's set to not autostart. The Tools/System Devices does have the Video and Audio checked. GPU is not primary.
  8. Memtest86 did not yield any errors, moved C2 to G2, will keep monitoring.
  9. From the log it seems that I have a memory issue Sep 11 16:37:25 Tower kernel: EDAC MC0: 1 CE memory scrubbing error on CPU_SrcID#0_Ha#0_Chan#2_DIMM#0 or CPU_SrcID#0_Ha#0_Chan#2_DIMM#1 (channel:2 page:0xac351d offset:0x0 grain:32 syndrome:0x0 - area:DRAM err_code:0008:00c2 socket:0 ha:0 channel_mask:4 rank:255) It looks like it is CPU1 Channel 2 DIMM #0 or #1, I do have RAM in those two location and will double check them one by one but just wanted to see if there is something else that I might have missed. Thanks! tower-diagnostics-20200912-0841.zip
  10. I did abandon this container some time ago since I did not need it anymore. It was used to backup my xbmc sql database but since I switched to plex I never used it again. I will ask squid to remove it from the list.
  11. adding my vote for this feature
  12. soana

    Squid is 50!

    Happy birthday Squid and saarg!!!
  13. Love: the community Want: server to server backup/sync