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.

mv command and the destination of my files

Featured Replies

I ran

mv /mnt/user/.custom/sabnzbd/downloads/complete/24/* /mnt/user/TV/24

in Putty.

 

It created a folder named "TV" on my cache drive, and then placed all the data there. I'd obviously prefer the data be in the protected array... ;D

 

In the File Browser within unMENU, /mnt/user/TV/ is the dir that displays EVERYTHING (vs. browsing through /mnt/disk1/, which only displays what is on that disk), so I assumed that using the mv command to that destination would move the data to whichever disk according to user shares and allocation settings. This didn't happen and I deleted 150gb. :o For some reason, I thought the data was a copy.

 

This page only shows methods that move data directly to a disk. I'd prefer to not choose the disk new data is moved to, allowing the allocation setting to do that. Is that not possible with command line methods?

 

v4.7

It is possible.

 

When you use 'mv' and the /mnt/user/ path, the file and directory tools will always prefer to keep data on the same drive. This is why it merely moved data from CACHE drive to CACHE drive. The reason it does so is it's trying to be efficient; it prefers/attempts to do a few simple Directory Node / INODE moves which is extremely quick instead of having to move significantly more data.

 

You might have been able to recover after your 'mv' issue by using the webGUI to invoke the mover script or directly invoking it yourself: /usr/local/sbin/mover

 

You need to be careful with your paths. It might have been fine if you used something like this instead (using unRAID 5.0b4 disk notation), of course this depends if you have that share setup to use CACHE or not:

 

mv /mnt/cache/.custom/sabnzbd/downloads/complete/24/* /mnt/user/TV/24

  • Author

I'm going to look into that mover invoke script, I think. Do I need to mirror EVERY folder in my TV directory for the mover script to work correctly?

 

The idea behind the mover script is to move data from the same named folder within the cache drive to another folder within the array. Is that correct?

The mover script will ignore files or directory's that start with .

 

mv /mnt/user/.custom/sabnzbd/downloads/complete/24/* /mnt/user/TV/24 will not move from the cache. But it will then allow the mover script to move the files into the array.

 

I don't understand why anything was deleted. mv should succeed if /mnt/user/TV/24/ exists else it will fail; nothing should be deleted. Does the directory /mnt/user/TV contain all of the data? Does the the share TV have "Use cache disk" enabled?

 

 

 

 

  • Author

I deleted the files, as I thought they were duplicates. Yes, despite using the mv command...  ;D

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.