UseCase "Restore/clone a system (snapshot)"

From SMW CindyKate by dataspects
Component1127210567
Jump to navigation Jump to search
[edit]
Keywords/Contexts

Vagrant · Ansible · Docker

Data Location · Dropbox Data Location Scheme · Local File Path Scheme

Annotations
{{#compound_query:Component1127210567Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.UseCaseMotivation;?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning
Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.UseCase "Restore/clone a system (snapshot)";?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.UseCase "Restore/clone a system (snapshot)";?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning
name=MotivationsDeclaredOnThisPageResultItem|link=none}}
Motivations
Lua error in Module:Motivations at line 23: attempt to concatenate field 'hasReasoning' (a nil value).
[edit]

Content


UseCase "Clone MediaWiki instances from Duplicity snapshots"

In its simplest form a MediaWiki instance consists of a MediaWiki core, extensions and data files (all contained in a MediaWiki root folder) and a database. By means of UseCase "Easy System Cloning (DSESC) Backup" these items are snapshot into Duplicity snapshots/archives.

Duplicity allows for various Data Location Duplicitys. Although Duplicity provides a Dropbox Data Location Scheme Duplicity "dpbx:///some_dir", this example makes use of the Local File Path Scheme Duplicity "file://[relative|/absolute]/local/path" and manages Dropbox synchronisation independently.

What happens on the workstation restoring a snapshot?

Now given such Duplicity snapshots at some local file path, within the context of https://github.com/dataspects/dataspectsSystem, the following command restores a MediaWiki snapshot on a single VirtualBox virtual machine:

DUPLICITY_SNAPSHOTS_SOURCE_URL="/path/to/DuplicitySnapshots/" \
OS_USER_PROFILE="/path/to/OS_USER_PROFILE.yaml" \
RESTORE_DUPLICITY_SNAPSHOT_PROFILE="/path/to/RESTORE_DUPLICITY_SNAPSHOT_PROFILE.yaml" \
ANSIBLE_PLAYBOOK="esc-restore-duplicity-snapshots.yml" \
vagrant up

This command includes two YAML configuration files:

OS_USER_PROFILE.yaml RESTORE_DUPLICITY_SNAPSHOT_PROFILE.yaml

What happens on the server creating snapshots?

See UseCase "Easy System Cloning (DSESC) Backup".

UseCase "Clone MediaWiki instances inside the server"