Previous Topic: ca_backup Operation OptionsNext Topic: ca_backup Log Options


ca_backup Pre/Post Options

The ca_backup command includes the following global pre/post options:

ca_backup
[-preexec <command>]
[-exitcode <exit code(>=0)> [-skip_delay|-skip_job] [-skip_post]
[-preexectimeout <minutes(0-32767)>]
[-postexec <command>]
[-skippostfail]
[-skippostincmp]
[-skippostcmp]
[-prepostuser <user name>]
[-prepostpassword <user password>]

-preexec <command>

Runs the specified command before the job starts.

The entire path of the command should be included.

Note: To use this option, you must also specify the -prepostpassword option. If you do not specify the -prepostpassword option, the job will fail.

-exitcode <exit code(>=0)>[-skip_delay|-skip_job] [-skip_post]

Specifies the exit code of the pre-execute command. Used with the ‑skip_delay, ‑skip_job, and ‑skip_post switches.

-skip_delay

Runs the backup job immediately, if the specified exit code is received.

-skip_job

Skips the backup job completely, if the specified exit code is received.

-skip_post

Skips the post-execute command, if the specified exit code is received.

-skippostfail

Specifies to not run the post command if the job fails.

-skippostincmp

Specifies to not run the post command if the job is incomplete.

-skippostcmp

Specifies to not run the post command if the job is complete.

-preexectimeout <minutes(0-32767)>

Specifies the time to wait (in minutes) before the backup job starts, to allow time for the pre-execute command to finish. The range of time to specify is from 0 to 32767 minutes.

Default: 0 minutes

-postexec <command>

Runs the specified command after the job finishes.

The entire path of the command should be included.

Note: To use this option, you must also specify the -prepostpassword option. If you do not specify the -prepostpassword option, the job will fail.

-prepostuser <username>

Specifies the name of the user who is submitting this backup job.

-prepostpassword <user password>

Specifies the password of the user submitting the backup job.

More information:

ca_backup - Examples