Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Best way to copy from a drive not in the array to the raid

Featured Replies

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  :D

You can only telnet to the server as root. You cannot connect to a share as root.

  • 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

You can use that command as long as it is followed with:

newperms /mnt/disk3/Movies/

 

 

  • 2 weeks later...
  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.