zurück

Personal Backup

© 2010, J. Rathlev, IEAP, Uni-Kiel
 

Frequently asked questions



Compatibilty to Windows-Vista

Installation: Always use the executable setup (pb-setup-4.1.xxxx.exe) to install or update the program at Vista. So you will be sure that there are no restrictions on executing Personal Backup.

Help is available on Vista from version 4.1.2.5.

Automatic backups on logoff or shut down are working on Vista with version 4.3.0.0 and newer


How to configure a backup task

Many users do not know which backup mode is best for their purposes. If you are not so experienced you should use the default options: copy and single files - drives separated. So you are assured that now files are deleted at destination (unless you selected the synchronize option. Only those files will be overwritten that have a newer timestamp at source. The backup will always be an exact (compressed) copy of all data (more).
For restore use the integration function of the program.

The option full, differential and incremental should only uses by experienced users if they want to perform a special backup strategy. In each case the destination directory is cleared before backup. For restore you need a combination of full and differential/incremental backups.

Saving to Zip files

There are two options to save data to Zip files:

  1. To one large Zip file: The original directory structure is part of the Zip file
  2. To one Zip file for each subfolder: The destination is an exact copy of the directory structure and each subfolder keeps a Zip file with all files of this directory.

Zip files have always to be written completely new. So this option is not so good for the dayly backup of lot of data. It is appropriate for saving small amounts of data (e.g. of special projects). Many programs (the Windows XP explorer too) can read and unpack these files. To keep the different stages of a project for documentation you can use placeholders as pat of the filename.


Anfang

Notes on the backup modes

There are four diffenret backup modes:

Note:

The modes Differential resp. Incremental should always be used in combination with full backups, e.g. in the following way:

  1. Make a full backup at the first day to directory A.
  2. Make a differential or incremental backup at the following days to directories B,C,....
  3. On restore you have to do this
    1. Full + differential: Restore the last full backup (A) and the last differentia backup (e.g. E).
    2. Full + incremental: Restore the last full backup (A) and all incremental backups (e.g.B,C,D,E).

Using automatic backups schedules of this kind are controled by the program.


Anfang

Problems while copying to USB drives and NAS systems

When using a backup target on one of the above devices it may be that the backup stops with the error message The target volume is full! .. even if there enough space available. In this case you should reduce the size of the internal copy buffer (e.g. to 64 kB): Task settings ⇒ Other task settings. Try different values to check which size is optimal for your device.


Anfang

Starting the program from USB stick

It is possible to configure Personal Backup in a way that it can be started from an USB stick without leaving marks on the host PC (Vers. 4.1.3.2 and newer). Copy all files from the program directory (usually C:\Programme\Personal Backup 4) or the downloadable Zip file to a directory on the USB stick (e.g. K:\PersBack). Use the command line options /ini:[IniFile] and /taskdir:[Directory]. The options set the program to use an ini file and a task directory on the USB stick.

Then create a batch file in the root directory of the USB stick using a texteditor (e.g. startpb.cmd) with the following lines:

   @echo off
   echo Start Personal Backup from USB-Stick
   start PersBack\PersBackup.exe /i:%%progpath%%\pb.ini /t:%%progpath%%\

Start the program from USB stick using this batch command and configure your backup task. To use a backup target directory on the stick omit the the drive letter from destination path (e.g. \Backup).


Anfang

How the encryption works

Files are encrypted using the AES method. The same routines are used as in WinZip. ( Infos at Winzip and at Brian Gladman). The created file format depends from backup mode:

No compression (proprietary file format):
Data are written to file in the same way as is done with Zip but without foregoing compression( more infos). As this is a non standard format a restore can only be made with the programm internal function.
   Enc-Header : 10, 14 or 18 bytes (depending on the length of the password)
                Salt value (8, 12 or 16 bytes) + password verification value (2 bytes)
   Enc-Data   : Same number of bytes as original file
   Enc-Trailer: 10 bytes Authentication code
   
With compression (modified GZip format):
Data are first compressed using the GZip algorithm and the encrypted in the same way as described in 1. The encrypted data have their own verification. So the GZip checksum is always set to 0. The GZip file format is specified in RFC1952. Consider that this standard does not contain recommendations for encryption. The format described below just follows its specifications. For a restore the programm internal function is required.
   GZip-Header : 10 bytes
                 new: Flag byte: bit 5 = encrypted
   Enc-Header  : 10, 14 or 18 bytes (depending on the length of the password, see 1.)
   Enc-Data    : Same number of bytes as compressed original file
   Enc-Trailer : 10 bytes  (see 1.)
   GZip-Trailer: 8 bytes
                 Crc always = 0
   
Zip file (compatible to Zip standard):
A description of the Zip format is found at PkWare, notes on encryption at WinZip. Personal Backup creates WinZip compatible encrypted archives. For restore any packer supporting these specifications can be used.

Look at the program sources for more details.


Anfang

Unpacking the Zip archives created on backup

At the moment Personal Backup has no integrated function to restore data from Zip files. Instead you can use one of the following tools or the program UnZip see below.

For standard Zip format (no encryption, all files < 4GB, Zip file < 4 GB) you can use the programs like WinZip, IZArc, WinAce, 7Zip, UltimatZip, Total Commander, Free Commander.

For Zip files with encryption you need at least WinZip Vers. 9. The other programs do not support encryption yet.

If a single file is larger than 4 GB and/or the size of the whole Zip file exceeds 4 GB the Zip-64 expansions are needed (see: http://www.pkware.com/business_and_developers/developer/popups/appnote.txt). Not all packing programs do support these expansions. It works with WinZip 9 and Total Commander (6.55 and newer). IZArc Vers. 5 gives an error on opening the archive but unpacking works.
WinAce Vers. 2.61 opens the archive but shows not all files and directories.
All other tested program refuse to open such an archive.


Anfang

Recover corrupted Zip files

At the beginning of a Zip archive are the compressed files with header and checksum. At the end follows a directory with links to the start point of each file. For more details look at PkWare.

If the directory is corrupted or missing many archive programs refuse to read. Anyway the data may be intact. Some archive programs (e.g. iZarch) have tools to repair such files.

To restore Zip file created with Personal-Backup even if parts of them are corrupted I wrote two small programs:

Download programs   Download sources

Anfang

Is the program capable of saving System data?

The aim of the program is to save those personal data edited at daily work (documents, sources, images, etc.). A lost of these data is very harmful. In most cases it is very hard or impossible to recover them manually.

On the other hand the operating system and the applications can always be reinstalled from their original sources. This needs some time but is possible.

Saving these data (operating system and applications) with Personal Backup does not make sense because a restore is not possible. Moreover a daily backup of a running system is not necessary (in difference to the personal data). The fastest way to recover a system after crash is to restore the whole partition saved with an imaging tool. A freeware version for personal use is available from Paragon: Backup & Recovery Free Edition


Anfang

"Path too long" error in log file

The Windows-API functions used in the vers. 4 program restrict the path length (directory + filename) to 260 characters (see Windows-SDK). Even the Windows-XP explorer has this limitation.
Vers. 5 was build with Delphi 2009 which has full Unicode support. With this version path lengths up to 32000 characters are allowed.

With vers. 4 you can use a workaround using the command "Subst":
Example:
The files to backup are located in the directory C:\Dir1\..\Dir2\Dir3\..\Dir4. The whole path (directory + filename) exceeds 260 charachter.
To split the path type at the DOS prompt:

subst X: C:\Dir1\..\Dir2
Now you have a new (virtual) drive X: with the subdirectory Dir3\... Add this to your backup task.
Later you can delete the assignment:
subst X: /d

To automate this procedure start the following batch files before and after the backup using the integrated function to external programs: SplitDir.cmd:

rem Split directory path and substitute with drive
subst X: %1
UnsplitDir.cmd:
rem release substitution
subst X: /d
Execute before Backup:
SplitDir.cmd C:\Dir1\..\Dir2
Execute after Backup:
UnsplitDir.cmd


Anfang

How to use network resources?

The destination directory may be located on any network computer. There are different ways to connect:


Anfang

The PC doesn't power off after backup

When performing a backup before the computer shuts down it may be that the PC does not power off or does not restart.
The reason is that the Windows-API function which notifies all programs before shut down (See "WM_QUERYENDSESSION" in Windows SDK) says nothing about the intended action (shut down, power of or restart).
To tell Personal Backup what to do after backup select this in the main menu "Preferences>Shutdown".

Logoff script

To avoid this problem do not use the integrated function "backup on logoff". Use instead a logoff script. Create the following script and set the windows policy for logoff (administrator rights are required):

  1. Create script file:
    1. Open NotePad or any other text editor.
    2. Insert this line:
      "%programfiles%\Personal Backup 4\PersBackup.exe" /force /hide <Backuptask>
      <Backuptask> is the filename of the configured backup task to perform on logoff.
    3. If you have other backup tasks to do add similar lines. Store the text file as LogOff.cmd in the folder
      C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logoff\.
  2. Start > Run and start the group polcy editor gpedit.msc
  3. Expand the tree:
    Policies for Local Computer > User Configuration > Windows Settings
  4. At Scripts do double click on Logoff.
  5. Click Add a Script and then the Browse.. button to select the file you just created. Close the window with ok.
  6. Close the group polcy editor.

Anfang

Start Personal-Backup as service

The easiest way to start Personal Backup as service is to use the Windows Task Scheduler. You can configure many different backup tasks to start at different times (e.g. on special days of the week).
Process the following steps:

  1. Configure and save the backup task using the desktop window of Personal Backup.
  2. Select Windows Scheduler tab and start the wizard Backup as new scheduled task:
    The settings to use the actual backup task are made automaticallay.
  3. Configure the time schedule
  4. Specify the user to run the program
Detailed description


Anfang

The scheduled task wizard requires a password

To start a backup using the Windows function Scheduled tasks an account with password is mandatory. So users using an account without password cannot start an automatic backup as scheduled task.
There are two solutions: Either add a password to the user's account settings or create a special backup account with password.


Anfang

The desktop window is disordered

If you have set the Display Properties > Settings > Advanced to another DPI-value as default (96) the components of the main program window will be disordered and are overlapping partly. This seems an issue how Delphi computates the positions of the desktop components at startup. I did not find a way to fix this by the program.

All users who wants toi have a larger font on desktop should use the setting at Display Properties > Appearance > Font. This can each user do just for himself and the program will be diplayed correct.


Anfang

Where to find the ini-file (for program settings) and the log-file

All program settings including the configuration of the automatic backup tasks are saved in an Ini-File (Persbackup.ini). This is a text file and can be read with any text editor. Please avoid to edit.
The file is as well as the standard log file (Persbackup.log) located in the user's application data directory. You will find it on Windows 2000 and XP at:
C:\Documents and Settings\<Username>\Application Data\PersBackup
. By default this directory is hidden. To make it visible change the Explorer setting at Tools > Folder Options > View > Show hidden files and folders.
User of Windows 98 will find the folder at the following locations:
1. No users specified: C:\Windows\AApplication Data\PersBackup
2. Several users: C:\Windows\Profiles\<Username>\Application Data\PersBackup


Anfang

Saving Outlook files

The files used bay outlook are locked for other applications. A backup of these data requires that Outlook is not running

There are two ways to assure this:

  1. The automatic backup is started on logoff by the program or a logoff script. At this time Outlook is terminated.
  2. Outlook is stopped for the time the backup runs. You need to execute scripts before and after backup.

VB scripts to stop and restart Outlook

Using the function Execute external programs a script is started before backup to stop Outlook. When the backup is done another script restarts it. The following example scripts can be modified for other applications too. To create and edit the scripts you neen a simple text editor lioke Notepad. Save the scripts at an appropriate location using the proposed names. Click Edit at Options/Extended/External programs and insert the following command lines:
Before backup: %sysdir%\cscript.exe "<path>\StopOutlook.vbs"
After backup: %sysdir%\cscript.exe "<path>\StartOutlook.vbs"
and set the checkboxes to active.

Stop Outlook (StopOutlook.vbs):
  ' VB Script Document
  option explicit
  
  dim oWmi, sWmiO, oQResult, oProcess, WshShell, iRet
  
  ' Terminate Outlook 
  
  Set oWmi = GetObject("winmgmts:")
  sWmio = "select * from Win32_Process where name='outlook.exe'"
  Set oQResult = oWmi.Execquery(sWmio)
    For Each oProcess In oQResult
      iRet = oProcess.Terminate(1)
    Next
  Set oWmi = Nothing
  
  set WshShell = WScript.CreateObject("WScript.Shell")
  WScript.Sleep 100
Restart Outlook (StartOutlook.vbs):
  ' VB Script Document
  option explicit
  
  dim WshShell
  
  ' Start Outlook
  
  Set WshShell = WScript.CreateObject("WScript.Shell")
  
  ' The following line depends on the uses Office version
  WshShell.Run """%ProgramFiles%\Office11\Outlook.exe""", 9
Download the script files

Anfang

Personal Backup and Windows 98

The actual Version 4.1 works on all Windows systems from Windows 98.