michielvv Posted October 20, 2023 Share Posted October 20, 2023 All, I am re-arranging my user shares from: data (< user share) Movies Series [whatever] into: Movies (< user share) Series (< user share) [whatever] (< user share) I have done extensive searching, but failed to find solid advise if this is as simple as mv command in /mnt/user/data to move all subfolders to /mnt/user/ which would *magically* align the (underlying) cache and disks folder structure? Reason to do it this way (instead of making new shares and moving data from the subfolder to the new shares) is that there is a lot of data to move. If I can prevent moving actual data by just changing the folder pointer, it could be done in a second. Maybe I need to manually change each folder structure on the cache and disks as well...? Anyways, I am afraid I somehow will wreck the disk/share framework Unraid is using and lose data, so looking for guidance. What would work? regards, Michiel Quote Link to comment
Solution JorgeB Posted October 20, 2023 Solution Share Posted October 20, 2023 37 minutes ago, michielvv said: is as simple as mv command in /mnt/user/data to move all subfolders to /mnt/user/ which would *magically* align the (underlying) cache and disks folder structure? Yep, new shares will be created with default settings, you can then adjust as needed. Quote Link to comment
michielvv Posted October 20, 2023 Author Share Posted October 20, 2023 This worked, thanks! I just tested it by moving /mnt/user/data/test-share to /mnt/user/test-share and indeed all files in this folder scattered over different drives and cache where moved in the background to the destination. Note that apparently SMB will restart, i.e. any SMB connection with the server will be reset. Quote Link to comment
JorgeB Posted October 20, 2023 Share Posted October 20, 2023 21 minutes ago, michielvv said: Note that apparently SMB will restart, i.e. any SMB connection with the server will be reset. Yes, that's normal when new shares are created, and top level folders are shares. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.