UltraBac has the capability of running almost all backup and restore functions through the DOS shell in Windows. These commands can be scripted or run manually through the command prompt, allowing manual interaction or the automation of backups using other applications or task schedulers. The command line interface cannot be used to create a set or to schedule a backup.
|
NOTE: For additional information on running UltraBac with DOS commands, please see the UltraBac Knowledge Base:
|
Usage: UB [option] [command]
Values in all caps are the default value.
Options and commands are NOT case sensitive
[option] can be one or more of the following:
/PrepareMedia:<volumelabel>
Prepare media with label
/Device:<device number or name>
Select device (overrides default)
/IncludeRegistry
Include the registry in the backup
/Set:<set specifier>
Specify the set to operate on by set number or index file name
/StartFileTime:<MMDD[YYYY][:HHMM]>
Specify start file time for operation.
/EndFileTime:<MMDD[YYYY][:HHMM]>
Specify end file time for operation.
/TimeType:[MODIFIED|accessed|created]
Specify the time type of StartFileTime and EndFileTime
/Restore:[path]
Restore to optional restore to path otherwise restore to original location.
/Overwrite:[Yes/No/Update]
Overwrite storage media or append.
/R
Recurse into subdirectories
/KeepStructure:[YES/No]
Maintain directory structure on restore
/KeepSecurity:[No/File/Folder/BOTH]
Maintain directory/file security on restore
/RestoreInUseFiles:[NO/Yes]
Restore files that are currently open
/Password:<password>
Set password
/Verify:[CRC/Compare/No]
Verify after backup.
/Quiet
Do not prompt for user input.
/Server:<Server Name>
Performs /Backup or /Jobs on remote machine.
/AutoResponse:<AutoResponse File>
Auto respond to messages
/Y
Forces protected media to be erased or prepared.
/AESKey:<key>
AES Key.
/AESPhrase:<phrase>
AES Phrase. Must Specify AESEncryptStr to use.
/AESEncryptStr:<128\192\256>
The Strength of the AES Phrase.
/CreateMigrationJob:<pool_name>
Create a Migration Job and use the specified pool.
/Stale:<###>
Number of days before the Migration becomes Stale.
[command] can be ONLY one of the following
/Backup <set/group name>
Back up the specified set or group
/CheckDevice
Check to see if device is connected or currently in use.
/EjectMedia
Eject media from tape device
/ViewHeader
View media Header
/ViewMediaIndex
View list of backups on media
/FindFiles:<file pattern>
File files specified by the file pattern
/Erase
Erase the default device or media specified with the /Media option
/Jobs
List jobs currently running on the local system or computer specified by /Server option.
|
NOTE: To view a list of all command line options in UltraBac, enter "ub /?" into the command prompt and press "ENTER." |
When specifying a group to run from the command line, no options need be set. This is a sample backup command using a Backup Group:
ub.exe /backup tuesday.ubb
When specifying a set to run from the command line, several options can be set. This is a sample backup command using a Backup Set:
ub.exe /backup server_full.ub /device:backuppath0 /preparemedia:tuesday /verify:crc
Options listed:
/backup <set/group name> – Back up the specified set or group.
/Device:<device number or name> – Select device for use during a "set-level" backup (overrides default).
/PrepareMedia:<volume label> – Prepare media with the specified volume label.
/Verify:<CRC/Compare/No> – Verify after backup.
To run an unattended backup through the UltraBac scheduler, use the following command:
scheduler.exe /E /NOW:<filename.ubb>
|
NOTE: Only File-by-file backups can be restored via the command line. |
It is also possible to run a restore using the command line. Sample command line for restore:
ub.exe /findfiles:* /restore:c:\temp /device:backuppath0
Options listed:
/FindFiles:<file pattern> – Files specified by the file pattern.
/Restore:[path] – Restore with optional restore to path.
/Device:<device number or name> – Select device (overrides default).