Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.28 KB

File metadata and controls

24 lines (19 loc) · 1.28 KB

cms-sync

A Python3 script to sync folders with Cascade CMS. This program will scan the contents of the current directory with a .cms config folder and sync files with a Cascade CMS server via Cascade's REST API. Designed for those locations where login access to a web server is not available. Tested on Ubuntu Linux, other operating systems may work as long as you have the required python libraries.

Installation Instructions

The code below will clone the repository into your home directory.

cd ; git clone https://github.com/jskenney/cms-sync.git ; cd cms-sync ; chmod 755 cmssync

Configuration

Once you have the repository cloned, the next step is to go into the folder you want to sync with the CMS server and create a .cms/config.py file and define the required entries, there is an example in the repository that can be copied and taylored as needed.

Performing the sync

Go into the folder that has the .cms directory and run: ~/cms-sync/cmssync

Frequently Asked Questions

  • Will it upload all files? Yes, as long as they are:
    1. Not in the ignore list (as defined in config.py),
    2. Do not start with a dot, and
    3. Are world readable.
  • Does it break? Yes, the program will stop and alert to any error (file naming, etc) and you will need to correct it before moving on.