Using Restore

Before restoring from a backup, shut down all LPS applications.  To use the restore feature of LPS_Sync, from the command line, run LPS_Sync.exe followed by a command line parameter, described in the following table:

Restore Command Line Parameter

Functionality

/r

Restores a previously backed up lpz file.

The default location when /r is used is the Loftware install folder.  You may override the default by specifying a different folder where the files are sent to.  See the example in the next table.

/f“path\filename”

Allows the user to configure a path and/or file name to restore from.

/l

Optional.  This creates a log; default is Loftware Labeling\backups\logs\LPS_Sync.log

/u"path\"

This will unzip the files to the designated directory without restoring system files.  Instead, registry files are placed in the unzip directory.  A file called “registry_restore.bat” will be created in the directory where the files are extracted to.  When run, the bat file will ask you if you wish to restore your registry files.  If you respond with Yes, LPS_SYNC.EXE is run with a /g against the same archive that the safe restore was run on.

/g

This will safely restore only the registry from an archive.  This uses the most recently created archive in the default archive directory, unless you specify a different archive using the /f option.

/s

Silent mode – No on screen messages are logged.

/y

Override questions with 'yes' as the default response

/h  (can also use /?)

Displays options

Following are examples of using restore command line parameters with LPS_Sync.exe.

Restore Scenario

Command

Result

Restore from default path

LPS_Sync /r

If there is more than one LPZ file in the default path, the most recent backup is restored.

Restore a uniquely named backup file (.lpz) from default path

LPS_Sync /r /f"ABCInc062606.lpz"

The contents of file ABCInc062606.lpz from default path are restored

Restore a default backup file from the default location to a unique location

LPS_Sync /r"c:\temp\"

The contents of  the most recent lpz in the default location are restored to “c:\temp\”.

Restore a uniquely defined backup file from a unique location to a unique location.

LPS_Sync /f
"c:\temp\ABCInc062606.lpz" /r "c:\newloc\"

The contents of c:\temp\ABCInc062606.lpz are restored to the c:\newloc\ folder.

Restore from default path and file name – silent mode

LPS_Sync /r /s

The result of this command is similar to the first scenario above.  The difference is that no on screen messages will be displayed.

Safe restore from default path; registry files not restored.

LPS_Sync /u

Most recent backup is restored to Loftware Labeling\backups
\safe restore; a file called registry_restore.bat is created in the same folder.  You will have to run this file to restore your registry files.

If the LPZ file to restore is not specified and there is more than one LPZ file (in the default or in the specified path), the most recent backup file will be restored.