Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

An admin web app (closed-source, 3rd party) that we use generates XML files into the Linux server where it is running. These XML files contain application settings for a production application. Only admin users can login to the app to modify those settings.

What is a good way to protect these files in a source control system? Recently we lost those XML files when the Linux system became corrupted.

Would this involve setting up a cron job to check the directory for changes to those XML files - and if they are changed, commit the changes using the same script (to SVN in this case)?

Is there a better way to do this?

share|improve this question
Have the app check the file in? And, also, where are your backups? – Michael Hampton Apr 28 '13 at 22:17
It's a 3rd party web app - we don't have access to the source code - so modifying it to check the file in is not an option. – Worn Drellis Apr 28 '13 at 22:38
cron will work. it's not perfect, but perhaps passable depending on your criteria. – Sirex Apr 29 '13 at 0:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.