I'd like to copy a dir and its contents in RAM, do my routines and periodically make some backups/sync on my original dir.
So if I have a dir
mydir/ with 2 files:
$ ls mydir/ file1.tex file2.tex
I can mount it with:
sudo mount -t tmpfs -o size=100m tmpfs ~/mydir
but the mounted one it's empty (as expected):
$ ls mydir/ $
1 - Is it possible to keep the original
mydir's contents in my mounted
2 - Is it possible to sync (let's say, every 5 minutes) the mounted
mydir on the hard drive? I red about the bind option but I'm not sure of how it works.