Last active
August 29, 2015 14:02
-
-
Save ableasdale/71c21032600a8dce7c1c to your computer and use it in GitHub Desktop.
XQSync Security Database backup script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# XQSync Security Database backup script | |
# Takes a backup of the Security database on a given system and creates | |
# a zip file containing all the necessary data for restoring. | |
# GLOBAL VARIABLES | |
CONNECTION_URI=xcc://admin:admin@localhost:8010 | |
TSTAMP=`date +"%H%M%S-%m-%d-%Y"` | |
echo ******************************** | |
echo Script started on $TSTAMP | |
echo Backing up the Security Database | |
echo ******************************** | |
java -cp xqsync.jar:xcc.jar:xstream.jar:xpp3.jar \ | |
-DINPUT_CONNECTION_STRING=$CONNECTION_URI/Security \ | |
-DTHREADS=16 \ | |
-DOUTPUT_PACKAGE=/path_to_your_backups/security-$TSTAMP.zip \ | |
com.marklogic.ps.xqsync.XQSync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment