2011-2013ForgeRock ASbackup1OpenDJbackupback up OpenDJ directory databackupoptionsDescriptionThis utility can be used to back up one or more directory server
backends.OptionsThe following options are supported.Back up all backends in the serverGenerate a hash of the backup contentsBackup ID of the source archive for an incremental backup.Compress the backup contentPath to the target directory for the backup file(s)Perform an incremental backup rather than a full backupUse the provided identifier for the backupBackend ID for the backend to archiveSign the hash of the backup contentsEncrypt the backup contentsTask Backend Connection OptionsMaximum length of time (in milliseconds) that can be taken to
establish a connection. Use '0' to specify no time out.Default value: 30000DN to use to bind to the serverDefault value: cn=Directory ManagerDirectory server hostname or IP addressDefault value: localhost.localdomainBind password fileCertificate key store pathNickname of certificate for SSL client authenticationSASL bind optionsDirectory server administration port numberDefault value: 4444Certificate trust store pathCertificate trust store PINCertificate key store PIN fileCertificate trust store PIN filePassword to use to bind to the serverUse to have the command prompt for the
password, rather than enter the password on the command line.Certificate key store PINTrust all server SSL certificatesTask Scheduling OptionsEmail address of a recipient to be notified when the task
completes. This option may be specified more than once.ID of a task upon which this task depends. A task will not start
execution until all its dependencies have completed execution.Email address of a recipient to be notified if an error occurs
when this task executes. This option may be specified more than
once.Action this task will take should one if its dependent tasks fail.
The value must be one of PROCESS, CANCEL, DISABLE. If not specified
defaults to CANCEL.Indicates the task is recurring and will be scheduled according
to the value argument expressed in crontab(5) compatible time/date
pattern.Indicates the date/time at which this operation will start when
scheduled as a server task expressed in YYYYMMDDhhmmssZ format for UTC
time or YYYYMMDDhhmmss for local time. A value of '0' will cause the
task to be scheduled for immediate execution. When this option is
specified the operation will be scheduled to start at the specified
time after which this utility will exit immediately.Utility Input/Output OptionsNo properties file will be used to get default command line
argument valuesPath to the file containing default property values used for
command line argumentsGeneral OptionsDisplay version informationDisplay usage informationExit Codes0The command completed successfully.1An error occurred while parsing the command-line arguments.ExamplesThe following example backs up all user data while the server is
online.$ backup -p 4444 -D "cn=Directory Manager" -w password
-a -d /path/to/opendj/bak -t 0
Backup task 20110613143801866 scheduled to start Jun 13, 2011 2:38:01 PM CESTThe following example schedules back up of all user data every night at
2 AM when the server is online, and notifies diradmin@example.com when
finished, or on error.$ backup -p 4444 -D "cn=Directory Manager" -w password -a
-d /path/to/opendj/bak --recurringTask "00 02 * * *"
--completionNotify diradmin@example.com --errorNotify diradmin@example.com
Recurring Backup task BackupTask-988d6adf-4d65-44bf-8546-6ea74a2480b0
scheduled successfullyThe following example backs up all user data while the server is
offline.$ /path/to/opendj/bin/stop-ds
Stopping Server...
...
$ /path/to/opendj/bin/backup --backupAll --backupDirectory /path/to/opendj/bak
...
[28/Sep/2012:12:14:22 +0200] ... msg=The backup process completed successfully
$ /path/to/opendj/bin/start-ds
[28/Sep/2012:12:15:48 +0200] ... The Directory Server has started successfully