I've got a backup server that stores incremental backups in a tree like this:
/backups hourly.0 server 1 server 2 hourly.1 server 1 server 2 hourly.2 server 1 server 2 daily.0 server 1 server 2 etc...
Without changing the source tree with the actual backups, I'd like to create a re-organized tree that looks like this:
/share server1/1 Hour Ago -> /backups/hourly.0/server1 server1/2 Hours Ago -> /backups/hourly.1/server1 server2/1 Hour Ago -> /backups/hourly.0/server2 server2/2 Hours Ago -> /backups/hourly.1/server2 ...
... and then export this tree as a single NFS mount.
The NFS client should see:
/backups server 1 1 Hour Ago 2 Hours Ago server 2 1 Hour Ago 2 Hours Ago
Failed Attempt #1 - Use Symlinks
This doesn't work, because symlinks are relevant to the NFS client machine not the server. Trying to open "1 Hour Ago" on a client tries to access /backups/hourly.0/server1 on the client which does not exist.
Failed Attempt #2 - Use BIND in /etc/fstab
/backup/hourly.0/server1/ "/share/server1/1 Hour Ago" none ro,bind,defaults 0 0
This let me create the tree I wanted, which was visible on the NFS clients, but I couldn't see anything inside the folders. This is presumably because NFS does not span file systems, and NFS sees a bind mount point as a new file system.
Is there any way to accomplish this?