Stratesave 6.0 Organized Backup Program Help Files

Commandline parameters

Command line at start of backup program can be modified within your Windows-environment. Stratesave expects following parameters:

macro name or name of macro file

Macro, which is loaded at start of backup program. If this parameter is not specified, macro with PC's network name is loaded automatically.

/PERIOD="period name" or SCHEDULED

Specifies backup period. For example /PERIOD="Daily Backup 1". SCHEDULED=Scheduled backups after time plan. If this parameter is not specified, it defaults to "Single Backup after time plan".

/RESTORE

Switch to restore display.

/STARTBACKUP

Starts backup automatically, without waiting for start command.

/LOADLOG

At start log is loaded automatically.

/EXITAFTERBACKUP

After successfull backup, backup program exits automatically. This parameter corresponds to command Exit program after backup from menu Options.

/SHUTDOWNAFTERBACKUP

After successfull backup, computer will be shut down automatically. This parameter corresponds to command Shutdown computer after backup from menu Options.

/STOPAFTERBACKUP

After successfull backup after time plan, backup program stops scheduling and running backups. This parameter corresponds to command Stop scheduling after next backup from menu Options.

/SERVICE

This parameter must be specified, if Stratesave is installed as a Windows Service.

/DELAY=nseconds

Wait time, before /LOADLOG or /STARTBACKUP will be executed. This is useful if Stratesave is running as a service, and better waits some time with starting the backups until all other system services have been started and networking has been initialized.

/MESSAGESFILE=filename

If specified, all output which goes to display-window "messages", will also be written (appended) to the specified file. This can be helpful for unattended backups.

/ENCRYPTKEYFILE=filename

If specified, reads the encryption key from the specified file. The key stored in the file can be public key (for backup only) or private key.

/HIDEMINIMIZED

If specified, The Stratesave program is not shown during backup if minimized. Only the task-bar icon is shown.

/NAME=name

Name assigned to this Stratesave session, so it can be remotely controlled. If Stratesave runs as a service, the service name should be specified.

/REMOTECTL

If specified, Stratesave will connect to another running Stratesave session, to control it.

/RCNAME=name

Name of the Stratesave session to control.

/RCSERVER=computer

Computer name of the Stratesave session to control.

/RCSERVICE

The Stratesave session to control is a service.

/RCRETRY

Retry to connect to remote Stratesave session, and show taskbar-icon with actual state.

/SELECT1=filename, dirname or databasename /SELECT2=.... /SELECTn=

Selects the specified directories/files/databases for restore. Start with /SELECT1=, and increment for every additional directory or file to be selected. If the name contains spaces, put it between double-quotes, e.g /SELECT1="C:\My Folder\Work to do". If a file, directory or database must be selected with an alternate target directory, specify ­> targetdir, e.g.
/SELECT1="C:\My Folder\Work to do ­> C:\My Folder\Work Done".
There should be exactly 1 space before and after the ­>
Please note that Database names are case sensitive here, for example: /SELECT1="SQL Server\DBname"

/EXCLUDE1=filename, dirname or databasename /EXCLUDE2=.... /EXCLUDEn=

Excludes the specified directories/files/databases for restore, if a parent directory was selected with /SELECTn=. Start with /EXCLUDE1=, and increment for every additional directory, file or database to be excluded. If the file or directoryname contains spaces, put it between double-quotes. Example:
/SELECT1="C:\My Folder" /EXCLUDE1="C:\My Folder\Work to do".

/RESTOREOPTS="options"

Specifies the restore options, which can also be entered under Restore Options. The options should be put between double-quotes.Separate multiple options with space or comma.
REXISTDIR=Y,N or A Corresponds option "Restore into existing directory". If Y (=Yes), Files will be restored to existing directory without asking back. If N, files will not be restored if directory already exists.
OVERWRITEFILE=Y,N or A Corresponds option "Overwrite older file". If Y (=Yes), Files will be overwritten, if the file from backup is newer, without asking back. If N, files will not be restored if same file exists already.
OVERWRITENEWERFILE=Y,N or A Corresponds option "Overwrite older file". If Y (=Yes), Files will be overwritten, without asking back. If N, files will not be restored if same file exists already, and the file on PC is newer than in backup. OVERWRITENEWERFILE=Y works only if OVERWRITEFILE=Y is also set. Example: To supress all "ask-dialogs" during restore, specify: /RESTOREOPTS="REXISTDIR=Y,OVERWRITEFILE=Y,OVERWRITENEWERFILE=Y"
SKIPLOCKEDFILES=Y or N Corresponds to restore option "At locked files and files without access". Y means files will be skipped, if N, backup will halt if a file is locked.
RLOCKEDFILESATREBOOT=Y or N Corresponds to restore option "Restore locked files and registry at reboot". Y means files will be prepared for restore at reboot. That way, even locked files can be restored, but Administrative privilege is required.
OVERWRITECOPIES=Y or N Corresponds to restore option "Make temp. copies of overwritten files". If Y, copies will be made of files overwritten during restore. The copies are in the same directory, with the same filename, but different extension, e.g. $$1. The copies can be useful if the restore operation should be undone.
COMPAREREGISTRY=Y or N Corresponds to option "Compare registry keys". If Y, registry keys will be compared during file-compare.
USEPRIV=Y or N Corresponds to option "Use restore privilege". If Y, restore privilege will be used to restore files.
USEPRIV=Y or N Corresponds to option "Use restore privilege". If Y, restore privilege will be used to restore files.
ROWNER=Y or N, RGROUP=Y or N, RACL=Y or N, RSYSACL=Y or N, Corresponds to restore options "Restore files owners/groups/permissions/auditings", and controls, which parts of NTFS security will be restored.

/STARTRESTORE

Start restoration at program startup. The directories/files to be restored must be selected with /SELECT1=-option.

/STARTCOMPARE

Start filecompare at program startup. The directories/files to be compared must be selected with /SELECT1=-option.

/STARTVERIFY

Start backup verification with checksum at program startup.

/EXIT

Exit restore program after the automatically started restore, compare or backup verify operation is completed successfully. It does not exit if the executed operation ends on error.

/CONFIGURENET

Automatically starts the Network-configuration wizard. This is used during ASR disaster recovery over Network. This option also enables following menu commands under menu Special, which can be useful for ASR disaster recovery: Configure Network, Map Network Drive and Command prompt.

Example command to make automatic full restore of C-drive and exit after restore, without any asking-dialogs, and write log-messages to a file on D-drive:
"C:\Stratesave 6.0\Stratesave" macro /RESTORE /LOADLOG /SELECT1=C:\ /RESTOREOPTS="REXISTDIR=Y,OVERWRITEFILE=Y,OVERWRITENEWERFILE=Y" /STARTRESTORE /EXIT /MESSAGESFILE=D:\RESTORE.LOG

See also: Examples how to configure automatic backup with commandline parameters

Stratesave    Help Files