July 21, 201213 yr Hey Guys, I just bought the Unraid Pro key today after purchasing my 4th hard drive . I set up an admin account with read/write access and a guest with read only access. I also have a 500gb drive which I was using as a cache drive but not the official unraid cache which I will change to in the near future. I just want to know the best way to transfer files from my 'cache' (attached drive not in the array but not unraid recognised cache.... yet) to the raid. Before 5 I had a little script that worked beautifully it was just copy from the movie folder on my cache to the unraid movie share and it was perfect. Since 5 the new permissions messed that up since I am copying them as root and i have to run the new permissions script to fix that - which is pretty annoying if I only copy one thing over. My plan was to telnet in as the admin account and run the script and everything would be great. But to the best of my knowledge I cannot telnet in as root. I tried numerous times and rebooted to make sure the settings were in but after I enter the password it just closes the telnet session. Could someone please tell me the best way to copy files from my cache drive to the raid where I dont have to use my laptop with its really slow wireless connection to be the middle man? Thanks alot
July 22, 201213 yr Author thanks dgaschk, It is possible to change user once I logg in? I am sure I read that somewhere but cannot find the post. I had a command like this along as well as some to delete the cache files after its copied etc cp -rvu /mnt/cache/.sabnzbd/complete/movies/* /mnt/disk3/Movies/ Are you saying I cannot use this command to copy to the movie share? cp -rvu /mnt/cache/.sabnzbd/complete/movies/* /mnt/user/Movies/ I just added an official cache to my server and I hope this will make things simple for me
July 22, 201213 yr You can use that command as long as it is followed with: newperms /mnt/disk3/Movies/
August 2, 201213 yr Author thank you dgaschk, I added a cache drive a few weeks ago and its really good. It works really well and I have it set to copy across once a week. If i download tv shows i have it set to go through sick beard which places it in the proper drive so I dont worry about it. For movies I like to rename them and delete excess files before I move them and with the cache I just move them to the Movie share on the cache which then automatically moves them. It worked perfectly this week. here is what I do now #/bin/bash sourceDIR="/mnt/cache/.sabnzbd/complete/*" destinationDIR="/mnt/cache/Movies" echo "Moving Files from $sourceDIR to $destinationDIR" if [ -d "$destinationDIR" ] then echo "The directory exists copying files now..." mv -v $sourceDIR $destinationDIR chmod -R go-rwx,u-x,g+u,ug+X $destinationDIR chown -R nobody:users $destinationDIR else echo "The directory does not exist, creating directory" mkdir -p $destinationDIR echo "Directory created copying files now..." mv -v $sourceDIR $destinationDIR chmod -R go-rwx,u-x,g+u,ug+X $destinationDIR chown -R nobody:users $destinationDIR fi echo " ______________________" echo "| |" echo "| COMPLETE |" echo "|______________________|"
Archived
This topic is now archived and is closed to further replies.