Skip to content

Instantly share code, notes, and snippets.

@joeworkman
Created March 15, 2019 21:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeworkman/8ece27cc2ddbbf29d9b533e3e767213e to your computer and use it in GitHub Desktop.
Save joeworkman/8ece27cc2ddbbf29d9b533e3e767213e to your computer and use it in GitHub Desktop.
You can run this script as a cron/scheduled job on your host to replace the cms-data folder contents with a templated version that you may have. You will need to replace the paths to the cms-data folders inside this script in order for it to work.
#!/bin/bash
rm -r /home/username/websites/total-cms.com/cms-data/
cp -r /home/username/websites/total-cms.com/cms-data-template/ /home/username/websites/total-cms.com/cms-data/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment