Jump to content

mgutt

Moderators
  • Posts

    11,351
  • Joined

  • Last visited

  • Days Won

    124

Everything posted by mgutt

  1. It would be nice to have a user-friendly input for the custom cron schedule or even an explanation. This answer helped me to understand the syntax. EDIT: Ok, now I found the "What is Cron" at the bottom of the page. Maybe you should rename it or add this popup after the "Custom Cron Schedule" gets focus.
  2. Are you sure? For me it still looks like a bug in Unraid as "mv" shouldn't be able to create parent dirs, but after they exist on the target share (in this example on the cache), it creates them on the source share: root@Thoth:~# ls /mnt/disk6 # used by share "Simone" Marc/ Photo/ Robin/ Simone/ Software/ Video/ appdata/ isos/ root@Thoth:~# ls /mnt/disk7/TV # used by share "TV" 09/ AB/ CD/ EF/ GH/ IJ/ KL/ root@Thoth:~# ls /mnt/disk8/TV # used by share "TV" MN/ OP/ QR/ ST/ UV/ WX/ YZ/ root@Thoth:~# ls /mnt/cache/TV root@Thoth:~# ls /mnt/user/Simone 10GB.bin Backup/ Janina\ und\ Sven/ PC.zip root@Thoth:~# mv /mnt/user/Simone/10GB.bin /mnt/user/TV/foo/ mv: cannot move '/mnt/user/Simone/10GB.bin' to '/mnt/user/TV/foo/': Not a directory root@Thoth:~# mv /mnt/user/Simone/10GB.bin /mnt/user/TV/foo/bar mv: cannot move '/mnt/user/Simone/10GB.bin' to '/mnt/user/TV/foo/bar': No such file or directory root@Thoth:~# mkdir --parents /mnt/user/TV/foo/bar root@Thoth:~# ls /mnt/disk6 # were not created on disk6 Marc/ Photo/ Robin/ Simone/ Software/ Video/ appdata/ isos/ root@Thoth:~# ls /mnt/cache/TV # we can find them on the cache of "TV" foo/ root@Thoth:~# mv /mnt/user/Simone/10GB.bin /mnt/user/TV/foo/bar/ root@Thoth:~# ls /mnt/cache/TV/foo/bar/ # empty?! root@Thoth:~# ls /mnt/disk6/TV/foo/bar/ # mv created all subdirs = usually not possible! 10GB.bin root@Thoth:~#
  3. @kc4uai 1.) All commands will be executed by root. Why not? If Unraids mover is invoked, it is executed as root as well. As this is an internal feature I do not really see the downside. 2.) All processes need to be added to a queue. This means they are not executed on php script runtime. Instead php monitors only the process. QNAP and Synology are doing the same. They use the notification area to display the progress. No undo is possible. Errors interrupt where the error appears. This is a "simple" task. You use a command and let write the output to a log file. And if the command returns an error, your return this error to the user. 3.) Sell the file explorer as a separate feature or raise the price of Unraid if your fear costs. 4.) "Complexion": Why is it complex to create a zip/tar of a folder or to delete a file/folder? The only complex situation is (maybe) copying/moving files and if you know the problems this would be a one day job to solve (backend). @trurl 5.) Reading and overwriting the same file on share and disk could be solved by checking the files inode number, before overwriting it. If its the same you return an error to the user. 6.) And if "mv" causes problems by moving files between two shares that uses different disks, then do not allow this. But I can not really understand why this happens. I was able to reproduce this problem and it does not move the data, instead it creates the same path on the source disk (that is not part of the target share). This sound like a bug in Unraid. I though a user share path is something like a mounted array of disks and all operations on such a target run through Unraid itself. I mean why is it possible to use "mv" to move files from the cache disk to a share, but not moving from share to share. And why does it not happen with "cp"?
  4. Yes I used rclone to fetch the files from the old NAS through SFTP. I'm not sure, but as I moved a new movie to /EF by using Tiny File Manager, that could be the reason of the permission change.
  5. Maybe someone else has this issue: The plex client showed me that the plex server is outdated. It offers me to download the file "plexmediaserver_1.19.3.2843-e3c1f7bcd_amd64.deb" to manually install the update. After reading multiple threads on the plex forums, reddit and in this forums I was not successful by restarting, stopping/starting or changing some settings of the container. But finally I found an other method. On the docker tab I needed to enable the "advanced view": and after that clicking on "force update" installed the latest plex server version
  6. I really don't know why but /EF had other permissions:
  7. Show Log is partial but Download Log should be the full file I think. Or am I wrong?!
  8. Is this really related to Windows? I'm able to open any subfolder except of "EF": This happend while Plex (installed through Docker) is playing a movie contained in this specific subfolder: P.S. My user and Plex have only read-only rights in "\Movie".
  9. @Dtrain Around line 21 is the command "zpool": This command is part of the zfsutils package and not available by default on an Unraid server. Maybe this is the reason? Test it by yourself. Open the terminal and type in "zpool": If it returns "command not found" than you need to install the ZFS Utilites first. P.S. You can use rsync to create incremental backups, too: #!/bin/bash # settings user_share="Music" # create full backup if [[ ! -d /mnt/user/Backup/Shares/${user_share}_$(date +%Y) ]]; then rsync -a /mnt/user/${user_share} /mnt/user/Backup/Shares/${user_share}_$(date +%Y) # create incremental backup else rsync -a --delete --link-dest=/mnt/user/Backup/Shares/${user_share}_$(date +%Y) /mnt/user/${user_share} /mnt/user/Backup/Shares/${user_share}_$(date +%Y%m%d_%H%M%S) fi This creates backups as follows: Every folder contains the full 1:1 backup of its day, but as "--link-dest" creates only hardlinks for already existing files it physically copies only changed / new files. This means its saves as much space as a ZFS snapshot does.
  10. The wildcard (or globbing) character shouldn't be needed. The "-a" flag is a shortcut for "-rlptgoD" and "-r" activates copying subdirs, too. Further explanation: https://serverfault.com/a/141778/44086
  11. Yes, rsync is one-way. It won't delete in the destination, too (as long you do not set the flag "--delete"). So it's incremental as you need it. P.S. If you do not pay for the Google cloud, it will massively reduce the quality of your photos. This is the reason why I'm using Amazon Cloud instead (with Prime membership).
  12. @guilhem31 A) You could move all files with "mv": #!/bin/bash mv /mnt/user/backup/phonecamera/*.* /mnt/user/photos/phonecamera/ By that all files will be moved to "/photos/phonecamera/", but if they already exist, the script will fail. Instead you would need to force overwriting the destination by using the "-f" flag: #!/bin/bash mv -f /mnt/user/backup/phonecamera/*.* /mnt/user/photos/phonecamera/ B) If moving triggers a full new upload through your smartphone app, you should consider "rsync" to copy the files: #!/bin/bash rsync -a /mnt/user/backup/phonecamera /mnt/user/photos/phonecamera Of course there are much more possibilities. Like copying files to a year/month base subfolder structure or copying only files with specific extensions like .jpg. I'm sure you will find other solutions through a little bit research. Hints: You find the correct paths by clicking on the view icon in Unraid next to the Share: By that it displays the complete path in the headline: If you want to know how to use CA user scripts in general, this video could be helpful:
  13. Yes, I did. My windows login is completley different from the smb share on the Unraid server. My Unraid share username is "marc" and for the smb alias I enabled the checkbox to save this login. As you can see I did not save the login for the IP, too:
  14. I did not enter different credentials. I used the same. Now, after restarting Windows both clients use the SMB alias again. It seems to be something related to this problem. Because the upload process through my smartphone has been interrupted. But I was able to restart the process without problems. The windows client is still able to open the folder and create files inside of it. It sounds like a bug for me. Something like "new login with same user = interrupt existing connection". I never had similar issues with my Synology NAS. Maybe a special setting needed for the SMB server? I'll try to restart the windows client and try to open the network share again while the upload through the Android Client is running. Let's see if it happens again. EDIT: Hmm no. The upload is still running and windows can access and write as usual. Strange.
  15. I have a similar issue. I'm having a share and created a subfolder through its user by an android app. This app is still able to create files inside this subfolder. Now I opened this folder with the same user through Windows and get an network error (Windows can not access ... You do not have permission...). Really strange 🤔 The user rights are looking good as well: And it becomes even more strange. I opened the share through its IP-address instead, entered the credentials, and are now able to open the subfolder without problems 🤪 Seems to be windows related or what do you think? EDIT: Ok, Windows Reboot solved the issue. Ok, thank you Windows 🙄
  16. Is CA User Scripts race condition safe or do I need to make my own check to be sure that my script runs atomic?
  17. Additional question: Should I backup domains and/or system to the array if cache only/prefer is set?
  18. If I stop the array or start the array all discs are spinned up. As this produces a high load on the power supply I like to see that Unraid spins up every drive with a little delay. Of course my power supply is big enough, but I think there is more potential killing a power supply by those high peaks than through other operations. Yes, restarting the server still produces this load, but this is a hardware based problem and can not be avoided through Unraid.
  19. Yes, with such a setting Unraid must totally ignore the content of the array else it would not work.
  20. I'm having a 1TB SSD installed. So the cache is big enough for my needs. If not I will install a bigger one. Why I need it: 1.) I want to add my music collection to the SSD as it is more energy efficient compared to the HDD and the response time is much better between a sleeping SSD and HDD (a press on the play button on a sonos speaker plays almost directly if I use the SSD). 2.) I want to add my video transcoding folder to the cache. This is the data I'm working on the weekends. I move the videos to an other share if I finished my work (= long time archive). At the moment I can only take advantage of the SSD as long the mover did not move the videos to the array. Of course a defective SSD kills the work of multiple hours, but after the mover did his work the data would be safe. At the moment I'm using rsync to copy both data to a backup folder on a daily basis. This perfectly solves my problem, but maybe its interesting having it as a builtin feature of Unraid.
  21. I like to use only my SSD cache for some Shares, but by that I would need to create manually a backup routine. Instead I like to choose an option called "Both" where the Mover syncs between the Cache and the Share. Example:
  22. Nice changes. Love that the icons are forced to be displayed in one row. But there is a small bug. If you edit the name of a script the gear symbol is html code is the name: and if you edit it, it displays both names without the gear: and if you delete the name its not possible to edit the name anymore:
  23. Feature Requests: 1.) Jump to top if "Edit Script" is selected or display the code under the scripts row (maybe better as it prevents scrolling) 2.) *deleted* 3.) "Show log" uses the -0700 timezone. Instead it should respect the Unraid timezone setting 4.) Changing a script name should rename the script filename, too. Or the User Scripts overview should be sorted by the script name and not the script filename. 5.) Maybe its nice to see directly if a script returned an error. Maybe by displaying the row with a red background color?! 6.) Optional: Send script output to email address. 7.) If you add a cogwheel symbol after the script name you do not need to explain the user how to edit a script ("For more editing options, click on any script's name"), but I'm not sure if this would look good 8.) "Add new script" should contain the code textarea as well (no need for the extra step to edit it) Thank you for reading and building this plugin!
  24. That would be of course the best option if possible. Thank you for the feedback.
  25. I changed one SMB share visibility from "yes (hidden)" to "yes". I think this causes a restart of the SMB service because all my active connections were killed and a running upload was interrupted. I think a dialog should warn before a setting is saved and the SMB service is restarted. Maybe it contains something like "John is writing with x MB/s to disk Y. Are you sure to restart the SMB service? Data lost possible bla bla"
×
×
  • Create New...