Just had a bit of a scary moment when messing about with mount --bind
I have a directory full of files/directories that I wished to make accessible under another mount point (for FTP users)
So I ran...
mount --bind /var/ftp/user/newmountpount /mnt/raid6/folder/
Which then appeared to clear the directory completely of any files! Fortunately they re-appeared when I unmounted.
So here's my question...
Is there a way to have it so that the files/sub-directories are there when the mount bind is both mounted and unmounted?
Or is it a case of moving the existing files somewhere else.
Doing the mount --bind
Moving the files back again.
Then I guess I should also make an entry in fstab to re-mount when the machine is restarted.