Script to migrate demos to cold storage
  • PHP 94%
  • Dockerfile 6%
Find a file
2017-08-08 13:51:50 +02:00
src better error messages 2017-08-08 13:51:50 +02:00
.gitignore initial version 2017-08-08 13:34:56 +02:00
composer.json initial version 2017-08-08 13:34:56 +02:00
composer.lock initial version 2017-08-08 13:34:56 +02:00
Dockerfile initial version 2017-08-08 13:37:36 +02:00
migrate.php initial version 2017-08-08 13:34:56 +02:00
README.md initial version 2017-08-08 13:34:56 +02:00

Migrate

Script to migrate demos to cold storage

Usage

The migrate scripts expects demos to be stored in the format as created by the backup script

The following environment variables are required for the script

  • SOURCE: The url of the api to backup the demos from (https://api.demos.tf)
  • STORAGE_ROOT: The directory the demos are in
  • BASE_URL: The base url that the demos can be accessed from
  • BACKEND: The name for the backend to set the demos to
  • KEY: The edit key for the api

The script will look in a .env file if the variables aren't set in the environment