Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.
/ cdf-scripts Public archive

Automated backups and site deployment for CSSU content hosted on CDF

Notifications You must be signed in to change notification settings

cssu/cdf-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cdf-scripts

Deployment scripts and backup automation for CSSU content hosted on CDF.

Installing

First, clone this repository into the home directory of the cssuwww user on CDF:

git clone [email protected]:cssu/cdf-scripts.git

Initialize the backup submodule:

cd ~/cdf-scripts/
git submodule init
git submodule update

Then make sure dependencies are installed:

gem install bundler
cd ~/cdf-scripts/
bundle install
cd backup/
bundle install

Updating

To update the backup submodule:

git submodule update --rebase

Tasks

Several rake tasks are defined in Rakefile:

  • rake deploy: Build the static Jekyll site and deploy it by copying it to /space/data/www/cssu/htdocs/
  • rake backup: Back up the contents of /space/data/www/cssu/htdocs/ to S3

Enabling automated cron tasks

Invoke whenever to update the crontab:

cd ~/cdf-scripts/
bundle exec whenever --update-crontab  # update the crontab using config/schedule.rb

About

Automated backups and site deployment for CSSU content hosted on CDF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published