November 13, 20241 yr My directory in Unraid is a bit of a mess: root@NAS:~# tree -L 1 /mnt/user /mnt/user ├── Games -> ../zfs/Games ├── Google Drive -> ../zfs/Google Drive ├── Media -> ../zfs/Media ├── Movies -> ../zfs/Movies ├── Music ├── MyRekordboxCollection -> ../zfs/MyRekordboxCollection ├── TV Shows -> ../zfs/TV Shows ├── appdata -> ../zfs/appdata ├── appdatabackup -> ../zfs/appdatabackup ├── appdatabackup_tmp_20241004112536 -> ../zfs/appdatabackup_tmp_20241004112536 ├── appdatabackup_tmp_20241004112536_tmp_20241023111607 ├── data -> ../zfs/data ├── data_tmp_20241003014612 -> ../zfs/data_tmp_20241003014612 ├── data_tmp_20241003014612_tmp_20241004112543 ├── data_tmp_20241003014612_tmp_20241004112543_tmp_20241023111616 ├── domains -> ../zfs/domains ├── downloads -> ../zfs/downloads ├── flashbackup ├── guacamole -> ../zfs/guacamole ├── isos -> ../zfs/isos ├── mac_music_mount -> ../zfs/mac_music_mount ├── movies_friends -> ../zfs/movies_friends ├── nextcloud -> ../zfs/nextcloud ├── nextcloud-backup -> ../zfs/nextcloud-backup ├── photos -> ../zfs/photos ├── photos_immich -> ../zfs/photos_immich ├── system -> ../zfs/system ├── tm -> ../zfs/tm └── vm_data -> ../zfs/vm_data I have two questions: 1. How would you suggest storing things differently? For example, moving some of these folders into others, making them subfolders instead 2. How do I move these folders, which are all shares? Is it just as simple as moving it from the Unraid GUI? Or do I need to make some extra considerations so things don't break? I assume I'll need to re-map some shares I have set up in various docker containers, but I wonder if there's anything else I'm not thinking about.
November 13, 20241 yr Community Expert I Strugle with this as well. In my case since i use zfs i had to make a structured like system for zfs: /mnt/user ├── Backups │ ├── flashbackup │ ├── appdatabackup -> ../zfs/appdatabackup │ ├── nextcloud-backup -> ../zfs/nextcloud-backup │ └── tm -> ../zfs/tm ├── Data │ ├── downloads -> ../zfs/downloads │ ├── domains -> ../zfs/domains │ ├── guacamole -> ../zfs/guacamole │ ├── isos -> ../zfs/isos │ └── vm_data -> ../zfs/vm_data ├── Media │ ├── Games -> ../zfs/Games │ ├── Movies -> ../zfs/Movies │ ├── Music -> ../zfs/Music │ ├── TV Shows -> ../zfs/TV Shows │ └── photos -> ../zfs/photos ├── Photos │ ├── photos_immich -> ../zfs/photos_immich ├── Cloud │ ├── Google Drive -> ../zfs/Google Drive │ ├── nextcloud -> ../zfs/nextcloud ├── Music │ ├── MyRekordboxCollection -> ../zfs/MyRekordboxCollection │ └── mac_music_mount -> ../zfs/mac_music_mount └── System ├── appdata -> ../zfs/appdata └── system -> ../zfs/system This structure gives you the following benefits: Grouped Backup Files: Putting backups under /Backups creates a single location for managing all backup-related files. Simplified Media Access: All media content is under /Media, making it easier to manage permissions and access. Dedicated System Folder: Docker and system files can be isolated under /System, which can also help prevent accidental changes to critical files. Cloud Sync Grouping: Grouping Google Drive and Nextcloud under /Cloud helps manage external sync folders separately. 2. Steps for Moving and Considerations To move the shares and ensure a smooth transition, follow these steps: Plan Docker Remaps in Advance: Identify all paths used by your Docker containers that will need updating. Prepare a list so you can quickly edit mappings once the move is complete. Use Unraid GUI to Move Shares: Unraid’s GUI lets you move shares without disrupting data integrity. To do this: Go to the Unraid web GUI. Navigate to "Shares" and select each share you wish to move. Use the “Move” option to reassign shares as subfolders in the new structure. Update Docker Container Volume Mappings: After moving the folders, go to each affected Docker container and update volume mappings to the new folder locations. Restart the containers to apply changes. Verify Permissions and Paths: Double-check permissions for each folder, especially for appdata, backups, and other system-related shares, to ensure Docker containers and users have appropriate access. Testing and Validation: Access each container to verify functionality. Check media paths and shares (e.g., via Plex or Jellyfin) to confirm that everything is accessible in its new location. Remove Redundant Temporary Folders: Remove or consolidate the temporary backup folders and data files (e.g., appdatabackup_tmp_* and data_tmp_*) to prevent unnecessary duplication. This approach keeps everything organized and accessible and should simplify your Unraid directory structure for maintenance and scaling. Edited November 13, 20241 yr by bmartino1
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.