Restore Backup Copy
The Restore Backup Copy window restores a database from a backup stored on a removable disk. When no file is open, two windows come first: Select File to choose the database, and a small window to set the location of a new file. Restoring from the hard disk is done by the backup and restore wizard.
Opening the window
- Click the Restore Backup from Removable Disk card in the backup wizard. The card appears in the standard edition, with the Restore from Removable Disk permission when a file is open, and with no permission check when no file is open.
- If the file is on a cloud server (SQL Azure), "Not supported within SQL Azure" appears and the window does not open. If windows are open, the program asks: "All opened windows must be closed before performing this operation. Are you sure you want to do this?".
- With no file open: if the server has an administrator defined, the Administrator window appears with "Please Insert Administrator Username and Password". A wrong entry shows "No such user or group" or "Invalid password". Then the Select File window appears.
- Next the drive selection window appears with "The driver on which you want to save data". If there is no removable disk it shows "No removable disks found".
- With a file open, the program reserves the file for you while the window is open and releases it after. If another user has already reserved the file, for example by opening Files Maintenance, "The files are in exclusive mode, you can't log on to the files now." appears and the window does not open.
The window
Its title is Restore Backup Copy.
| Item | Description | Values and rules |
|---|---|---|
| Stored Backups | The .zip files on the disk you chose, newest first, with the columns Date and At (from the file date). | The first row is selected when the window opens. If there is no file, "Did Not Find Any Copy on Removable Disk" appears and the window closes. Backups whose file is read-only are shown in another color. |
| Notes | The notes of the selected backup, from the .inf file beside it. | Read-only. |
| Retrieve File | The database the backup is restored to. | Shown only when no file is open. |
| File | The name of the open file. | Shows the name when a file is open. |
| Permanent Copy | The box reflects whether the notes file is read-only. | Hidden when no file is open. Changing it changes nothing in this window. |
| Browse | Visible when a file is open. | Does nothing in this window. |
| Export Log File before Restoring the Copy, its path field and its Browse button | Visible in the window. | The program does not read this box when restoring from a removable disk, so it exports no log file. |
| Button | What it does |
|---|---|
| Delete | Asks for confirmation, then tries to delete the backup from the disk with its notes file, then reloads the list. If refused, "You Do Not Have Authority to Delete File" appears. |
| Ok | Restores the selected backup. |
| Cancel | Closes the window without restoring. |
When you click Ok:
- If the selected backup is not the newest, the program asks: "Selected Copy is Not The Last Copy Restored. Are You Sure You Want to Restore This Copy?".
- Then it asks: "The backup retrieving will delete all operations of invoices and entries that has been done since that version was installed till now, do you want to retrieve the backup?". No cancels.
- It checks that the file path and the target path use Latin characters only. Otherwise "File name should contain only Latin letters!" or "Location should contain only Latin letters, make sure of backup options" appears.
- It unzips the file to the current computer folder (or to the computer path you entered in the Select File window), then restores the database from the
.datfile in the folder the server sees. A progress window titled "Restoring Backup Copy" appears. - "Operation completed successfully" appears and the window closes. With a file open, the program reopens the file and checks it, and closes it if it fails the check.
If unzipping fails, no message appears. SQL Server does the restore, so its message appears if it fails.
The Select File window
It appears when no file is open, before the drive selection.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Retrieve Database | The database the backup is restored to. | Yes | The databases registered in the settings database that exist on the server. Under it the internal name of the selected database. |
| Server Index | The folder where the server places the backup file after unzipping. | Yes | You type it. The browse button beside it does nothing. |
| Current PC index | The folder on this computer where the file is unzipped. | Yes | Type it or pick it with the browse button, which opens a folder window titled "Please Select Folder". Make it the same folder the server index points to. |
| Button | What it does |
|---|---|
| All | Fills the list with all databases on the server (except system databases). |
| New | Opens the Files Location window, then creates an empty database and adds it to the list. |
| OK | Checks: with no database selected, "Please Select Data Base" appears. If either index is empty, "Please Select Track" appears. Then a sign-in window with the default name "مدير" and the title "Open file" asks for a user of the database. A wrong entry shows "Incorrect user name" or "Incorrect password". A user without the Restore from Removable Disk permission sees "You don't have the authority to restore backup from Removable Disk". A user with all permissions skips this check. |
| Cancel | Closes the window. |
The Files Location window
Its title is Select File. It appears from the New button.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Files Location | The path of the new file. | Yes | The program fills in a suggested name. The folder must not exist yet, otherwise "The selected folder already exists. Files must always be created in new folder..." appears. |
Browse... opens a file name window. OK creates the database, with "Creating files Please wait" shown. Cancel closes the window.
Messages
| Message | When it appears |
|---|---|
| Did Not Find Any Copy on Removable Disk | There are no .zip files on the disk. |
| Selected Copy is Not The Last Copy Restored ... | You selected a backup that is not the newest. |
| Operation completed successfully | The restore finished. |
| You Do Not Have Authority to Delete File | The server refused to delete the backup. |
| Please Select Data Base / Please Select Track | Something is missing in the Select File window. |
| Incorrect user name / Incorrect password | The database user's entries are wrong. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.