February 10, 201115 yr Is there someway (addon or similar) that can keep a mirror of my directory structure on the cache disk? What I do is I save all new stuff in [/mnt/cache/.Incoming] and once it's complete I organize it into the correct share [/mnt/user/Something]. When I do this I'd prefer moving it within [/mnt/cache] and have mover transfer them later. I do realize this is what is happening behind either way but executing the following two commands is quite different in what happens behind: mv /mnt/cache/.Incoming/NewItem /mnt/cache/Something - (relocate) mv /mnt/cache/.Incoming/NewItem /mnt/user/Something - (copy/sync/delete ?) Or am I just using it wrong?
February 10, 201115 yr I'm in a similar set-up. What I've been doing is manually creating the directory structure on /mnt/cache to mimic the directory structure on the ultimate destination share and let mover do it's thing overnight. The only downside is that mover removes the directory when it's done, so if you have frequently used share directories (/TV_Shows or /Movies in my case) you need to create them every time. I haven't looked into it, but there's probably a way to modify the mover script to leave the empty directories after moving the files.
February 10, 201115 yr The mover script use to leave the directories but most users found it annoying to see those empty directories.
February 10, 201115 yr Author The mover script use to leave the directories but most users found it annoying to see those empty directories. Don't suppose there is a version of that mover laying around somewhere?
February 10, 201115 yr The mover script use to leave the directories but most users found it annoying to see those empty directories. Don't suppose there is a version of that mover laying around somewhere? I do not have it, but if you would like it I would send limetech and email and request it. Note: You will have to copy it into place on every reboot as the mover script gets recreated
February 10, 201115 yr The mover script use to leave the directories but most users found it annoying to see those empty directories. Don't suppose there is a version of that mover laying around somewhere? I do not have it, but if you would like it I would send limetech and email and request it. Note: You will have to copy it into place on every reboot as the mover script gets recreated You can add a line like this to the end of your config/go script: sed -i "s/-delete/-print/" /usr/local/sbin/mover It will disable the deletion of directories every time you reboot. You can also invoke the same command on the linux command line to change the mover script right now without rebooting. (but unless you add the line to the config/go script, or re-invoke it manually after a reboot, the mover script will be back to its original contents after a reboot) It will change the mover to print to the syslog those directories that are empty instead of deleting them. Joe L.
February 11, 201115 yr Author Guess one could pipe it away to not fill syslog but this way is excellent, thanks a bunch Joe. For anyone else interested I used the following line (once in shell) to recreate my user shares on the cache disk 3 levels deep together with the modification that makes em stay. I initially used xargs but it blew up in my face with a pipe error so ended up using awk. find /mnt/user0 -type d -print -maxdepth 3 | egrep -v "^/mnt/user0(/Unsorted|/\.|$)" | sed "s/^\/mnt\/user0/\/mnt\/cache/" --unbuffered | awk '{ system("mkdir \""$0"\"") }'
Archived
This topic is now archived and is closed to further replies.