Restoring files from blueprint on command
- by Nick
I am setting up a server. I already have rented a machine running centOS 6 but I have run into a bit of a technical problem with configuring the server software:
The server will have some files that it will try to read/write to them but what I need is a way to have a blueprint of these files and everytime the server restarts the files that it used get deleted and replaced by the blueprints.
I have heared of a RAM disks or Virtual File Systems but didnt quite understand how they work or how to set them up.
The server software is written in java which means bash commands can be run from it.
I cannot modify what happens when the server shuts down entirely what I can do is run a command before the server runs the final shutdown save