snapshot

This script will create a snapshot of a single repository while running. The snapshots will be stored in the $XP_HOME/snapshots directory.

-?, --help

Displays a detailed help message.

-u <user:password>

The user / password combination for export resource. Requires role ADMIN_LOGIN_ID.

-r <repo-id>

The repository to snapshot.

-h <hostname>

The hostname of the Enonic XP instance. Defaults to localhost.

-p <port>

The http port of the Enonic XP instance. Defaults to 8080.

-n

Apply pretty print of the snapshot output result. This requires that Python is installed on your system.

Example:

$ ./snapshot.sh -u su:password -r cms-repo -n