Skip to content

[BB-635] Add archive_instances command to archive OpenEdXInstances.

Boros Gábor requested to merge john2x/archive-instances-command into master

Created by: john2x

See BB-635

Added a new archive_instances management command to archive multiple instances by their Internal LMS domains.

Example usage:

$ make manage 'archive_instances --domains=sandbox.example.com,test.example.com'
honcho run python3 manage.py archive_instances --domains=sandbox.example.com,test.example.com
Found 2 instances (from 2 domains) to be archived...
- sandbox.example.com
- test.example.com
Are you sure you want to continue? [yes/No]
yes
Archiving sandbox.example.com...
Archiving test.example.com...
Archived 2 instances (from 2 domains).

Can also accept a file of newline-separated domains.

$ make manage 'archive_instances --file=domains.txt'

Includes unittests for the command. Tests were based on existing tests for similar commands like instance_redeploy.

Merge request reports