diff --git a/README.md b/README.md index 8005b6f..841fe20 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,13 @@ and restart the Docker container: ```sh /path-to-cronicle-storage/data/.setup_done ``` +### Import data +A previously [exported data file](https://github.com/jhuckaby/Cronicle#data-import-and-export) can be provided in the following location: + +```sh +/path-to-cronicle-storage/data/backup.txt.import +``` +The file will get loaded the very first time Cronicle is started. ## Web UI credentials The default credentials for the web interface are: `admin` / `admin` diff --git a/entrypoint.sh b/entrypoint.sh index e8b4020..65138f8 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -28,6 +28,12 @@ then cp $DATA_DIR/config.json.import $CONF_DIR/config.json fi + # load exported data if present + if [ -f $DATA_DIR/backup.txt.import ] + then + $BIN_DIR/control.sh import $DATA_DIR/backup.txt.import + fi + # Create plugins directory mkdir -p $PLUGINS_DIR