DataRestore [ -l ]
DataRestore [ -t ] RESTORENAME
For restores of single files, a copy-paste approach is more recommendable then using DataRestore.
The restores are performed as file copies to a target location.
Restores are defined in configuration files with the name DataRestore.RESTORENAME.cfg in the etc/ directory.
DataRestore uses robocopy internally to copy data. DataRestore aims to be a convenient interface to robocopy.
The usage message also prints a template for the restore definition to be used in the DataRestore.RESTORENAME.cfg file.
To create a DataRestore.RESTORENAME.cfg file, invoke:
[ D:\bin\WA2LSimpleBackup\etc ] [ fred@acme007 ][*wtshell*/cmd]: ..\lib\DataRestore -h > DataRestore.EXAMPLE.cfg
A restore is represented by a configuration file having the name DataRestore.RESTORENAME.cfg in the etc/ directory.
%COMPUTERNAME%, %USERNAME%, %USERDOMAIN%, %TEMP% and %TMP%.
The following time and date related variables can also be used:
%TODAY%, %YEAR%, %MONTH%, %DAY%, %HOUR%, %MIN%, %SEC%, %YDAY% and %SEMICOLON%.
Please note that all variables always are specified in upper case.
For a detail description of the variables, see: databackup.bkp.cfg(4)
In this example the data backed up using databackup (1) to D:\var\backup\USBSTICK\ACMEPC\u is restored back to the USB stick currently located on the U: drive letter:
# # DataRestore.EXAMPLE1.cfg - Restore USB stick backup # # [00] 01.04.2019 CWa Initial Version # DESCRIPTION=Restore Backup from %COMPUTERNAME% to USB Stick SOURCE_DIRECTORY=D:\var\backup\USBSTICK\ACMEPC\u DESTINATION_DIRECTORY=U: RESTORE_FOLDERS=\ _USB-STICK_ \ dat \ tmp \ doc \ bin
This is identical to example 1) with the differences, that labels are used to go around changing drive letters on removable devices.
The label of the PC is ACMEPC and the label on the USB stick is _USB-STICK_.
A label can be a directory on the related device or the drive name that you see in the Windows™ Explorer beside the drive letter.
# # DataRestore.EXAMPLE2.cfg - Restore USB stick backup # # [00] 01.04.2019 CWa Initial Version # DESCRIPTION=Restore Backup from %COMPUTERNAME% to USB Stick SOURCE_DIRECTORY=ACMEPC:\var\backup\USBSTICK\ACMEPC\u DESTINATION_DIRECTORY=_USB-STICK_: RESTORE_FOLDERS=\ _USB-STICK_ \ dat \ tmp \ doc \ bin
The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
Fix:
https://www.microsoft.com/en-us/download/details.aspx?id=29
For more information see: http://www.zhornsoftware.co.uk/support/kb.pl?q=00085.
This is free software; see WA2LSimpleBackup/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.