The Migrate command in VBScript for use with Langmeier Backup. The command executes a data backup, while the folder paths to be backed up can be changed as desired on the data backup.
For example, Windows XP folders:
C:\Documents and Settings\Peter\My Documents
can be written to the data backup in such a way that the backed up folders correspond to the usual file structures under Windows Vista, Windows 7 and Windows 8 +10:
C:\Users\Peter\My Documents
Integrated macros can be used, for example, to automatically convert the files to the correct file structure for Windows 7. Or the path parts to be changed can be defined using user-specific replacement expressions to implement your own migration scenarios.
Parameters
Source
|
The source of the data to be migrated.
|
Target
|
The target path. The data is copied here and the directories are renamed structurally if necessary.
|
[Expression1]
|
Replacement expression in the form "Expression1->Expression2" - where Expression1 in the backup path is replaced by Expression2.
|
[Expression2]
|
Replacement expression in the form "Expression1->Expression2" - where Expression1 in the backup path is replaced by Expression2.
|
[Expression3]
|
Replacement expression in the form "Expression1->Expression2" - where Expression1 in the backup path is replaced by Expression2.
|
[Macro]
|
A predefined macro for a fixed folder path scheme. This allows you to convert folder structures from Windows XP, for example, directly into the folder structures of Windows 7. The "Macro" specification defines the target system for which the migration is carried out.
Possible values:
- |
Standard: No macro (replacements are made according to the specifications in Expression1, Expression2 and Expression3) |
|
Examples
'-------------------------------------------------------------------------------- 'Copy all PST files to the USB stick with the name "USB stick". 'The folder path "\Local Settings\Application Data\Microsoft\Outlook" is 'thereby changed to "\Documents\Outlook files" on the USB stick. '--------------------------------------------------------------------------------
Migrate "%UserProfile%\Local Settings\Application Data\Microsoft\Outlook\*.pst", "[USB stick]", "\Local Settings\Application Data\Microsoft\Outlook\* .pst", "[USB stick]", "[ USB stick]".
Outlook\->\Documents\Outlook files"
'-------------------------------------------------------------------------------- 'Here the destination folder '(Destination) entered in the backup task is used as the backup destination , and thanks to the asterisk, all subfolders of 'C:\Documents and Settings are searched and the 'PST files are backed up in their subfolders. '--------------------------------------------------------------------------------
Migrate "C:\Documents and Settings\*\Local Settings\Application Data\Microsoft\Outlook\*.pst", Destination, "C:\Documents and Settings\->C:\Users\", "\Local Settings\Application Data\Microsoft\Outlook\->\Documents\Outlook Files\"
'-------------------------------------------------------------------------------- 'Use the "Windows7" macro to adjust the folder structures that have changed between Windows XP and 'Windows 7 - all users that exist under C:\Documents and 'Settings are taken into account thanks to the specification of an asterisk (*). '--------------------------------------------------------------------------------
Migrate "C:\Documents and Settings\*\Desktop", Destination, Windows7 Migrate "C:\Documents and Settings\*\Favorites", Destination, Windows7 Migrate "C:\Documents and Settings\*\My Documents", Destination, Windows7 Migrate "C:\Documents and Settings\*\Application Data\Microsoft\Signatures", Destination, Windows7
|