Programming Taskbook

Russian

E-mail:

Password:

User registration   Restore password

1000 training tasks on programming

©  M. E. Abramyan, 1998–2011

 

Teacher MiniPack | PTBackupMaker tool | "Backup-configurations" menu

PrevNext


"Backup-configurations" menu commands

The "Backup-configurations" menu gives you quick access to backup-configuration management. A working directory is required for executing these commands. The selected directory must contain the results.dat file (the presence of this file means that the selected directory is a working directory of Programming Taskbook). Note that the result.dat file provides data for the final part of the path to repository data.

"Backup-configurations | Add" command (F2) adds the current backup- configuration to the selected directory. This command is unavailable if the current backup- configuration is not defined completely. If the command is available but the current configuration still has not been saved then the current configurations is saved automatically before executing this command. This command copies the backup.dat file with the current configuration to the working directory; if the directory already contains the backup.dat file then a message box appears confirming to replacing the backup-configuration. If the backup.dat file is copied successfully then the program offers to test added backup-configuration immediately.

"Backup-configurations | Select and Add" command (Ctrl+F2) allows to select a backup.dat file and add it to a required working directory. After selecting a backup.dat file this command executes the same way as the "Backup-configurations | Add" command.

"Backup-configurations | Test" command (F3) provides testing of the backup- configuration added to the working directory. At first PTBackupMaker checks whether the results.dat and backup.dat files exist and contain correct data. Then PTBackupMaker checks whether the hidden PTBackup directory and its subdirectory with backup data exist.

At last PTBackupMaker runs console CVS-client that initializes the corresponding repository data, commit a sample file to the repository and restores it from the repository. A message about test results is displayed in the information window.

If testing is performed immediately after adding the current backup-configuration to the working directory (see the "Backup-configurations | Add" command) the program uses the PTBackupTest.bat file for CVS-client running. If error occurs during CVS-client running then the program offers to run the batch file once again with output all its messages on screen. Note that the batch file is not removed from the PTBackup directory when testing finishes, so one can use this file afterwards to solve problems with the CVS using.

If the backup-configuration is tested be means of the "Select and Add" or "Test" commands then the batch file is not created, and console CVS-client runs by PTBackupMaker itself. It guarantees confidentiality of authentication data that may be contained in the backup-configuration.

"Backup-configurations | Remove" command (F4) removes the backup.dat file and the PTBackup directory (with the backup data subdirectory) from the working directory. This command does not change the repository data.


PrevNext

 

 

Designed by
M. E. Abramyan and V. N. Braguilevsky

Last revised:
04.06.2011