Script to migrate demos to cold storage
  • PHP 94%
  • Dockerfile 6%
Find a file
2020-02-14 13:56:22 +01:00
src encode url for redownload 2020-02-14 13:56:22 +01: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 fix docker build 2018-06-06 12:59:03 +02:00
migrate.php 2 days 2019-02-18 19:16:30 +01: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