As the title states, I am looking to virtually merge two folders into one. These folders are extremely large and reside on separate drives (one is 1.4TB and the other is 2.7TB). I still plan to use the normal mount points for file and folder manipulation, but I want to combine them somewhere in a read-only status for display on my website (I set up
windex as a fancy directory listing). There will be no duplicate names or folders in the merged folder. I have no desire to do raid or LVM with these drives and prefer to keep them physically separate.
Basically, I am working on setting up a basic listing of all my media content that is hosted for my htpc, but make it available to me to easily stream via my phone or laptop. I have everything already set up and it seems to work fine, but I want to do more pruning on the way things are listed. Currently all my ripped movies are on one drive and I have split my TV shows into two drives, one for ongoing series that I have ripped, and the other for series that have ended/been cancelled. I want to combine both the TV show folders into one folder that is displayed on the site. The drives are currently set up as:
Code:
/share/
|--TV/
| |--completed/ #/dev/sdb1
| | |--TV Shows/
| | | |--3rd Rock from the Sun/
| | | |--Firefly/
| | | `--Smallville/
| | `--Random1 # Won't be included in the webshare
| |
| `--ongoing/ #/dev/sdc1
| |--TV Shows/
| | |--Castle (2009)/
| | |--Mythbusters/
| | `--The Newsroom/
| `--Random2 # Won't be included in the webshare
|
`--movies/ #/dev/sdd1
|--Movies/
| |--Galaxy Quest/
| `--Short Circuit/
`--Random3/ # Won't be included in the webshare
What I want it to be is:
Code:
website.com/
|--TV Shows/
| |--3rd Rock from the Sun/
| |--Castle (2009)/
| |--Firefly/
| |--Mythbusters/
| |--Smallville/
| `--The Newsroom/
|
`--Movies/
|--Galaxy Quest/
`--Short Circuit/
It's easy enough to just do a symlink for Movies/ in the folder I share, but what can I do for the TV shows? I've read about using
cp -s (or -l) to make symlinks (or hardlinks) for all the files and folders, but this is something I'd have to run anytime I make changes to the filesystem, which I'd rather not deal with (even though I could semi-automate it with a script). Is there something that comes with Slackware that is able to do what I'm looking for?
I've read a bit about unionfs, mhddfs, and aufs, but they seem to tackle something much greater than I need (it seems all of them support writing to those directories, of which, I won't be doing as I'd access the direct location of the files whenever I make changes). However, if any of these are the best route to go, is there a suggestion on which one is best and if there's any slackbuilds available (aufs was available on slackbuilds.org back with 12.1 and I can probably use that as a starting point)?
Keep in mind, the folders under website.com will be read-only (and the website is password protected), so there is no reason to use a tool that allows read/write, unless that's the only tool available.
Thanks in advance for any insight on the matter.