Created
March 15, 2019 21:24
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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