In case of unix/linux, is there a way to create union of two directories without copying or linking manually everything to a single directory?
|
feedback
|
|
One option is to use unionfs
Or another similar option aufs. | |||||||
feedback
|
|
mhddfs is great for making a heap of drives that are transparently linked. It takes some /etc/fstab fiddling, but the solution works great for me http://blog.mindlesstechie.net/2009/01/19/combine-your-partition-space-with-mhddfs/ | |||
|
feedback
|
|
Would copying the content of one directory in the other not cut it ? Or copy both of the contents into a single folder. The first options costs one command and the other two. | |||
|
feedback
|
|
rsync -avz /path/1 /union/dir rsync -avz /path/2 /union/dir It'll work on local and remote directories. | |||
|
feedback
|