August 31, 201015 yr I know alot of people use unRAID as a media server. What kind of folder structures do you use? I'm not happy with the old system on my PC and want to start from scratch with something new, so I'm looking for ideas. I have nearly 1000 movies on DVD and BD that I would eventually like to rip. But my problem is that I don't want my 3-year old to have access to all of them from the Dune Base in his room. I don't want to walk in his room and catch him watching Showgirls. It looks like I can use unRAID to only give his box user permissions to see certain folders, so I'm keeping that in mind too. For the time being I copy everything (appropriate for him) over to a HDD in his Dune and it isn't on the network at all, but it is a hassle keeping things up-to-date there, and then again on my storage. I thought about dividing my rips up by rating, so as he got older, I could just give him more permissions. Long term it sounds like a good idea vs moving files around, but I don't like that hierarchy on paper...
August 31, 201015 yr Author Does the Dune not have Parental Control settings to restrict based on Ratings? Nope. They have it as a feature you can vote on to be added in the future, but right now it has 1% of the vote... So I keep going back and forth between subfolder by ratings, and just keep giving his player more and more access privileges as he gets older, or... Create a special subfolder just for kid friendly stuff and keep moving stuff to it from the regular folders (don't like). Or I guess it might be possible to put user restrictions on disk access? Then I could just make sure all his videos go to the same disk, only give him user rights to that disc, and then everything would still aggregate under one Movies share. But that still means moving more and more stuff around as he gets older.
August 31, 201015 yr Does the Dune not have Parental Control settings to restrict based on Ratings? Nope. They have it as a feature you can vote on to be added in the future, but right now it has 1% of the vote... So I keep going back and forth between subfolder by ratings, and just keep giving his player more and more access privileges as he gets older, or... Create a special subfolder just for kid friendly stuff and keep moving stuff to it from the regular folders (don't like). Or I guess it might be possible to put user restrictions on disk access? Then I could just make sure all his videos go to the same disk, only give him user rights to that disc, and then everything would still aggregate under one Movies share. But that still means moving more and more stuff around as he gets older. You could do something like I do to keep a "share" for holiday movies. I keep a list of the files to be included on that share in a script. Execuiting that script puts the links into place. The script I use looks like this: movies_dir="Movies" family_dir="family-movies" for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 do rm "/mnt/disk$i/$family_dir"/*.[Aa][Vv][ii] rm "/mnt/disk$i/$family_dir"/*.[ii][ss][Oo] rm "/mnt/disk$i/$family_dir"/*.[Mm][Pp][Gg] rmdir "/mnt/disk$i/$family_dir" done echo " BELLS_OF_ST_MARYS.ISO CHRISTMAS_CAROL-ALISTER_SIMS.ISO CHRISTMAS_CAROL-GEORGE_C_SCOTT.ISO HOLIDAY_INN.ISO HOME_ALONE-1.ISO HOME_ALONE-2.ISO HOME_ALONE-3.ISO HOME_ALONE-4.ISO IT'S_A_WONDERFUL_LIFE-COLORIZED.ISO IT'S_A_WONDERFUL_LIFE-ORIG-BW.ISO THE_POLAR_EXPRESS.ISO THE_SANTA_CLAUSE-1.ISO THE_SANTA_CLAUSE-2.ISO THE_SANTA_CLAUSE-3.ISO WHITE_CHRISTMAS.ISO " | while read movie do if [ "$movie" != "" ] then a=`ls /mnt/disk*/"$movies_dir"/"$movie"` if [ "$a" != "" ] then d=`dirname "$a"` cd "$d" mkdir -p ../"$family_dir" ln "$a" ../"$family_dir" fi fi done My movies all reside in a "Movies" share, mostly as .ISO files, but with a few .avi files too. The initial loop deletes all the .AVI .avi .ISO .iso .MPG and .mpg files from the directory (user-share) defined as "family_dir" The list of movies is then linked from the existing "/mnt/disk*/Movies" folder to a parallel "/mnt/disk*/family-movies" share on the same physical disk. The movies do not occupy more disk space, as there are just to pointers to the same disk blocks holding the movie. (links on unix are somewhat similar to shortcuts on Windows.. but better) I don't have to worry about which disk a movie is on, nor do I have to duplicate movies in different folders. It does make it much easier for my family around the holidays on some of the media players that just let you browse a shared folder. Joe L.
September 1, 201015 yr Author Does the Dune not have Parental Control settings to restrict based on Ratings? Nope. They have it as a feature you can vote on to be added in the future, but right now it has 1% of the vote... So I keep going back and forth between subfolder by ratings, and just keep giving his player more and more access privileges as he gets older, or... Create a special subfolder just for kid friendly stuff and keep moving stuff to it from the regular folders (don't like). Or I guess it might be possible to put user restrictions on disk access? Then I could just make sure all his videos go to the same disk, only give him user rights to that disc, and then everything would still aggregate under one Movies share. But that still means moving more and more stuff around as he gets older. You could do something like I do to keep a "share" for holiday movies. I keep a list of the files to be included on that share in a script. Execuiting that script puts the links into place. The script I use looks like this: movies_dir="Movies" family_dir="family-movies" for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 do rm "/mnt/disk$i/$family_dir"/*.[Aa][Vv][ii] rm "/mnt/disk$i/$family_dir"/*.[ii][ss][Oo] rm "/mnt/disk$i/$family_dir"/*.[Mm][Pp][Gg] rmdir "/mnt/disk$i/$family_dir" done echo " BELLS_OF_ST_MARYS.ISO CHRISTMAS_CAROL-ALISTER_SIMS.ISO CHRISTMAS_CAROL-GEORGE_C_SCOTT.ISO HOLIDAY_INN.ISO HOME_ALONE-1.ISO HOME_ALONE-2.ISO HOME_ALONE-3.ISO HOME_ALONE-4.ISO IT'S_A_WONDERFUL_LIFE-COLORIZED.ISO IT'S_A_WONDERFUL_LIFE-ORIG-BW.ISO THE_POLAR_EXPRESS.ISO THE_SANTA_CLAUSE-1.ISO THE_SANTA_CLAUSE-2.ISO THE_SANTA_CLAUSE-3.ISO WHITE_CHRISTMAS.ISO " | while read movie do if [ "$movie" != "" ] then a=`ls /mnt/disk*/"$movies_dir"/"$movie"` if [ "$a" != "" ] then d=`dirname "$a"` cd "$d" mkdir -p ../"$family_dir" ln "$a" ../"$family_dir" fi fi done My movies all reside in a "Movies" share, mostly as .ISO files, but with a few .avi files too. The initial loop deletes all the .AVI .avi .ISO .iso .MPG and .mpg files from the directory (user-share) defined as "family_dir" The list of movies is then linked from the existing "/mnt/disk*/Movies" folder to a parallel "/mnt/disk*/family-movies" share on the same physical disk. The movies do not occupy more disk space, as there are just to pointers to the same disk blocks holding the movie. (links on unix are somewhat similar to shortcuts on Windows.. but better) I don't have to worry about which disk a movie is on, nor do I have to duplicate movies in different folders. It does make it much easier for my family around the holidays on some of the media players that just let you browse a shared folder. Joe L. I know zero about scripting in linux ... so far .... But if I understand your script, you assign some constants... I don't understand the purpose of the for - do statment. Why 1 through 24? Number of drives? I didn't know unRAID could have 24 drives. Then you delete all the files in the family_dir share, on each drive. But are they really files, or links to files? Then you remove the empty family_dir folder from each disc. Then you have a list of file names to add to a new share. As you go through the 24 drives deleting your old family_dir, you look for the filenames from the list on each drive. If you find a match, you remake the family_dir share on each drive, and include a link to the file. So for example, if Home Alone is on disk 7, the script will make a family_dir share on disk 7 with a link to Home Alone. All these shares then aggregate like a regular user share. Something like that might work if I modified it. My only problem would be that most of what my son has is TV shows, and I have ripped each episode of the season as a separate .iso. So he has hundreds of separate iso's. I probably need to learn a bit more about scripting before I tackle making a new one. But it's good to know such an approach can be done, because it can help me figure out my initial filing routine.
September 1, 201015 yr I know zero about scripting in linux ... so far .... But if I understand your script, you assign some constants... Correct... for the name of the user-share my movie files are in and the name of the share I'll link the listed movies to. I don't understand the purpose of the for - do statment. Why 1 through 24? Number of drives? I didn't know unRAID could have 24 drives. It can't, I future proofed the script. (at one time 24 was mentioned as a possibility) Since most of the drives don't even exist in my server, it is just easier to scan all possibilities and I don't need to worry whe I do add drives. Then you delete all the files in the family_dir share, on each drive. But are they really files, or links to files?That is the HUGE difference between linux and windows. In linux ALL directory entries are links to a set of data blocks holding the contents of a file. You can have as many links as you like, all with different names, or in different directories as long as they are all in the same file-system. Normally, a file has only one link from a directory entry to the data blocks, but, as I said, you can have as many as you like. You can reference the data through any of the links...(file names) they are ALL equivalent. You can remove any link and the data blocks will not be freed for re-use until there are no more links to them. Since there is still the original "link" to the file in the "Movies" directory, I can remove the links in the family-movies directory and still have the files. (Just don't delete the file from there too, then there will be no links to the data blocks, and the file will be deleted) Then you remove the empty family_dir folder from each disc. Yes, it was just to clean up the extra folders from the prior run of the script. That way, if I rename or delete a movie from the list it will be gone from the family-movies directory too. Then you have a list of file names to add to a new share. As you go through the 24 drives deleting your old family_dir, you look for the filenames from the list on each drive. If you find a match, you remake the family_dir share on each drive, and include a link to the file.After I delete all the moves from the family_dir, I then use a different technique to process each of the names in the list. They are read using the "while read movie" line. I then use an "ls" command with a wild-card to return the correct disk the file actually resides on. I then make a "family-movies" link on the SAME drive as it currently resides in the "Movies" share. Links can't be made across file-systems. So for example, if Home Alone is on disk 7, the script will make a family_dir share on disk 7 with a link to Home Alone. All these shares then aggregate like a regular user share. Exactly correct. And you can assign you son the ability to access the family-movies share on the lan. Something like that might work if I modified it. My only problem would be that most of what my son has is TV shows, and I have ripped each episode of the season as a separate .iso. So he has hundreds of separate iso's. I probably need to learn a bit more about scripting before I tackle making a new one. But it's good to know such an approach can be done, because it can help me figure out my initial filing routine.
Archived
This topic is now archived and is closed to further replies.