Jump to content

Darkestnoir

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by Darkestnoir

  1. Hey,

     

    i got a Eaton Ellipse ECO 800, but ~once a day it goes on battery for a second and switch immediately back to wall power.

     

    Not sure why it does it, but the notification/email everyday from the plugin is a little bit annoying.

    A configurable delay in seconds would be nice 😅

     

    Edit: Reason for the battery kicking in is a "faulty?" Tasmota power plug which sometimes crashes and disconnect the power for a short time, funny that my server not cared before i had the UPS :D

    • Haha 1
  2. 4 hours ago, KluthR said:

    Yes, thats the case. I have no clue how to fix that in a smart way. Maybe I just move the preRun BEFORE destination existence. Seems smart enough to me.

    This would also be the way i would fix it, i am happy to see it in the next release ☺️

     

    4 hours ago, KluthR said:

    Looks like a missing +x (executable) flag to me. Make sure the scripts are really executable by set rights like "chmod a+x *script.sh*"

    Ah, i totally forgot this, ty for the hint.

     

    4 hours ago, KluthR said:

    See Compression Option (Yes, Yes multicore) and its related help block.

    Oh, i overlooked this ty.

     

    4 hours ago, KluthR said:

    Nope. Only VM meta xml. No more logic to VMs (yet)

    Okay, i found the VM Backup plugin, its a little bit old, but maybe it works just fine for it.
    Edit: Hm seems not to work correctly unfortunately.

     

    4 hours ago, KluthR said:

    Have a look into the debug log file at the last few lines (/tmp/appdata.backup/ab.debug.log)

    I can see it their neither:

    grafik.thumb.png.7bc5518dce707183fe0e9230b52ef0dc.png

    4 hours ago, KluthR said:

    Huh, not used for a while now, I check this.

    That would be great, because FF is my main browser ^^

  3. It would be nice, if i can also set permissions to make a file executable (chmod *+x).


    Also why i can't edit .sh files, but when i remove the file extension it works?

     

    Edit:
    Okay i have to manual edit the /boot/config/editor.cfg.

    Would be nice if this file has already the most file extensions in it, or a easier GUI configuration menu.

     

    Edit2:

    It also would be nice if the editor could check if the file is correctly formatted.

    F.e. i had created a bash script in Windows with the wrong line endings (LE instead of LF), so the script didn't work correctly.
    I couldn't see the difference within the editor, only nano showed that is something wrong.
    After i converted them, they look the same in the editor of this plugin, but now they work.

  4. Hey, i got few issues with this plugin unfortunately:

    1. The plugin seems to check if the destination is available before running the pre-run script, which leads to an error, because my backup drives are detach and unmounted and the pre-run script has to attach and mount them before (see 5.).
    2. My scripts can't be executed, i get a error. The are saved on my cache pool drives with ZFS as fs, thats my scripts:
      Backup_pre-run.sh:
      #!/bin/bash
      # Attach the backup disks
      /usr/local/sbin/rc.unassigned attach WD_Elements_25A3_564748334E355047-0:0	
      /usr/local/sbin/rc.unassigned attach Lexar_USB_Flash_Drive_901451523E981815-0:0
      # Mount the backup disks
      /usr/local/sbin/rc.unassigned mount name=Backup1
      /usr/local/sbin/rc.unassigned mount name=Backup2

      Backup_post-run.sh:

      #!/bin/bash
      # Unmount the backup disks
      /usr/local/sbin/rc.unassigned umount name=Backup1
      /usr/local/sbin/rc.unassigned umount name=Backup2
      # Detach the backup disks
      /usr/local/sbin/rc.unassigned detach name=Backup1
      /usr/local/sbin/rc.unassigned detach name=Backup2
      
    3. The compression part seems to use only one core, is there a way to let it use more, to speed it up, to reduce down times of the container/VMs?
      grafik.thumb.png.2c2f9fd337297efed92e96c04a5057c7.png

    4. My VM does not get a backup, because it does not get stopped and the plugin throws an error because the VM disks gets used of course.
      I thought this plugin does also stops and restarts VMs.
      Which is the best way to do this for schedule runs?

    5. It seems that my post-run script not getting executed as well, but there is not error for it in the log:

      [27.02.2024 00:37:12][ℹ️][Main] 👋 WELCOME TO APPDATA.BACKUP!! :D
      [27.02.2024 00:37:12][ℹ️][Main] Backing up from: /mnt/cache/appdata, /mnt/user/appdata
      [27.02.2024 00:37:12][ℹ️][Main] Backing up to: /mnt/disks/WD_Elements_25A3/Backup/ab_20240227_003712
      [27.02.2024 00:37:12][][Main] /mnt/cache/appdata/ServerScripts/Backup_pre-run.sh is not executable! Skipping!
      [27.02.2024 00:37:14][⚠️][Main] There are no docker containers to back up!
      [27.02.2024 00:37:14][ℹ️][Main] Backing up the flash drive.
      [27.02.2024 00:37:41][ℹ️][Main] Flash backup created!
      [27.02.2024 00:37:41][ℹ️][Main] Copying the flash backup to '/mnt/disks/Lexar/Backup' as well...
      [27.02.2024 00:37:42][ℹ️][Main] VM meta backup enabled! Backing up...
      [27.02.2024 00:37:42][ℹ️][Main] Done!
      [27.02.2024 00:37:42][ℹ️][Main] Backing up extra files...
      [27.02.2024 00:52:00][][Main] tar creation failed! Tar said: tar: /mnt/cache/domains/HomeAssistant/haos_ova-11.5.qcow2: file changed as we read it
      [27.02.2024 00:52:03][ℹ️][Main] Checking retention...
      [27.02.2024 00:52:03][ℹ️][Main] DONE! Thanks for using this plugin and have a safe day ;)
      [27.02.2024 00:52:03][ℹ️][Main] ❤️
    6. In Firefox (123.0) it is not possible to select new sources etc. over the menu, when i click on a folder/checkbox, it just reloads the site, no issue with Chrome:
      grafik.thumb.png.b004c8e681ce2832c67b7b0baffe2ffa.png

     

    My settings:
    grafik.thumb.png.4cd8b4b2495ed2e64cc8bd98277ec19a.png

  5. 22 minutes ago, dlandon said:

    You don't need it.  Use the alias you assign and then the device for all commands is 'name=alias'.  In the case of the detach command, 'name-alias' does work.  I see in the UD page it is not documented in the help that the alias can be used.  I'll correct that.

    Okay, still not sure what do you mean, i tried all 3 possibility's i can think of, none worked here, see the picture above.

     

    Edit:

    23 minutes ago, dlandon said:

    Edit: In your case use:

    /usr/local/sbin/rc.unassigned detach name=Backup1

    Ah ty, maybe also add this to the help thing:
     

    '/usr/local/sbin/rc.unassigned detach name=diskname' - detach device by disk name.

     

  6. 17 minutes ago, dlandon said:

    When you use the built in device script, the device is passed to the script as $DEVICE.  If you have a stand alone or User Script, the alias 'name=' always works as the device for all the commands.

     

    The serial is long and very cumbersome.  The alias name is a lot easier.

     

    The sdX and devX do change.  That's why $DEVICE is passed in as an environment variable to the device script.  You can use $DEVICE in the built in device script.  UD handles the proper device assignment.

     

    The alias name works for the consistentcy you are looking for.  There is no reason to implement the serial number for the commands.

    Okay, the i think the serial is the easiest one, because it was the first thing i found and makes sense.
    But i still can't find the correct /dev/sdX or devX designation for my drive to detach it:
    grafik.png.d77c6a7f4ada75e1e01b88488efa238d.png

    grafik.thumb.png.ea8394e69d18abcb3f83de6fa900e402.png

     

  7. 5 hours ago, dlandon said:

    I've made a fix for this.  It will be in the next release.

     

    The GUI is limited in space and a longer alias would take up too much space.

     

    When the device is detached, it is a very low power mode.  What makes you think it is spinning?

     

    Can you spin down the disk using the GUI?

     

    There was a change made to allow a USB disk to act more like a SATA device and possibly fix this kind of thing, but the disk still has to handle spinning down.  If you are not using 6.12.8, try upgrading and see if it helps.

    Ty for the fix.

    I think its spins, because the led is not slowly blinking, the drive vibrates and need to much power, also it makes a humming sound 😄

    No, the external USB WD disk can't be spin down, Unraid tries it, but the drive just blinks fast for few seconds and then steady again.
    I am using 6.12.8 already, just installed it few days ago.
    Like i said the only solution is to unplug the drive, unbind the USB driver, maybe ububctl or anything else which disables the USB port.

     

    Edit1:
    Okay, i detached the drive and after i came back, after few hours, it was spin downed.
    It seems it takes a little bit of time until the drive spins down (have to recheck again).
    When i just unplug the USB cable it spins down immediately.
    I already found the command to detach and attach a disk.
    But i can't find the correct device to use the detach command.
    Not sure why every cmd needs another name/ID for the same device in the end, when the serial is always available and unique (f.e. WD_Elements_25A3_564748334E355047-0:0 in my case)
    The other things like diskname or /dev/sdX or devX designation (which i am not sure were i can find them) can change, which is bad for such a script.
    A "fix" for this would be nice @dlandon, so we can just use the serial for every attach, detach, mount, unmount etc. cmd.

    Edit2:
    It takes 30min until the drive spins down, after detach, not good, but okay.

  8.  

    43 minutes ago, dlandon said:

    The 'diskname' is the alias you assign to the disk:

    Screenshot 2024-02-26 080045.png

    Screenshot 2024-02-26 080150.png

    Ty, this fixes the second problem.
    I used the disk identification/serial, which makes more sense to me, but fine it works.

    Why ever it shows "success" but not really does anything with a wrong disk name.
    The limit to 8 characters in the disk name is a little bit strange.

     

    38 minutes ago, dlandon said:

    This is a user script I use to perform a backup to that disk.  It can be done on a schedule with User Scripts.

    #!/bin/bash
    #description=Backup Music Folder.
    #backgroundOnly=true
    #arrayStarted=true
    #clearLog=true
    #
    LOGFILE="/tmp/unassigned.devices/logs/Music_Backup.log"
    
    # Mount the backup disk
    /usr/local/sbin/rc.unassigned mount name=MusicBk
    # Backup the Music folder to the backup disk
    rsync -av --delete --exclude .Recycle.Bin '/mnt/user/Music' '/mnt/disks/Music Backup/' 2>&1 >> $LOGFILE
    # Unmount the disk
    /usr/local/sbin/rc.unassigned umount name=MusicBk
    # Spin down the disk
    /usr/local/sbin/rc.unassigned spindown name=MusicBk

     

    Ty for the script, but like i said, the spindown does not work, the external USB WD drive ignores it.
    Even when i detach the disk via the WebUI it does not make a difference.
    My internal disk have no issues with spindowns.
    I can't unbind the USB driver, because of the Unraid stick and i also want to use other USB devices, i have to disable the specific USB port, like this program does uhubctl.

    So is there a way to use that program in Unraid, or do anyone know a other plugin etc.?

  9. 10 minutes ago, dlandon said:

    Click on the 'Help' icon in the upper right side of the UD UI and read down the page.  You'll see the script commands to manage a UD disk - mounting, unmounting, spinning down, and putting the disk in standby.

    This not really helps in any way 😅

     

    Let me pack it in one sentence:
    I want a automated backup, which is performed by schedule, which mounts my external USB WD HDD and unmount/spindown it afterwards.
     

    Problems in that i run.

    • Unraid can't spindown the external USB WD HDD, because WD sucks, had the same problem with proxmox, so i had to unbind the USB driver stack (not really a solution for Unraid).
    • I tried to mount/unmount the HDD with:
      /usr/local/sbin/rc.unassigned mount name=diskname

      But it seems not to work, i tried it via the console, it says "success" but nothing happens.
      I tried different "disknames", either i don't find the correct "diskname" or it just not work.

  10. Hey, i got an external HDD from WD as my backup drive.
    Now i need a script or so, to mount the drive for the backup and unmount and spin it down afterwards.
    The plugin Appdata Backup seems to do backup stuff fine and i also can enter custom scripts.
    I also installed Unassigned Devices to do the mounting, but not sure if and how i can use it via a script.

    In Proxmox i simply used this script:

    #!/bin/bash
    	
    if [ "$1" == "job-start" ]; then
    	echo '2-4' |tee /sys/bus/usb/drivers/usb/bind
    	sleep 30
    	mount UUID=6ff3beb2-cfb9-4f0f-a12b-2261be04253d /mnt/backup
    fi
    if [ "$1" == "job-end" ]; then
    	sleep 30
    	umount /mnt/backup
    	echo '2-4' | tee /sys/bus/usb/drivers/usb/unbind
    fi


    I had to unbind the USB driver to get the drive to spin down, because i saw no other way back then.
    But for Unraid this solution is probably not the best, if its even working.

    I found a little program called uhubctl to disable specific USB ports, but no idea how i get that working in Unraid.

    I am thankful for any useful tips ^^

×
×
  • Create New...