Skip to main content

Set automatic backup options

The program takes backups into a folder on the SQL Server computer, warns you before a restore according to a time you set, and runs automatic backups on a schedule. You set all of this on the Backup page of Program Options.

Before you begin​

  • You need the permission to open the Backup page of Program Options. Grant it in the Users window, on the operations page under Options.
  • The page does not appear in the demo version or for a subscription file.
  • A company file does not have to be open. With no file open the program saves the values on this computer, and the browse button opens a Windows folder chooser.
  • Choosing the folder from the server's folder list needs an open file. If the server is on another computer, find out the path that exists on it.
  • The automatic schedule works only if SQL Server Agent runs on the server. SQL Server Express does not include it.

Steps​

  1. Click File, then Program Options. The window opens with a list of pages on one side.

  2. Choose the Backup page.

    The Backup page of Program Options with the server folder, the computer folder, the temporary folder, the restore warning and the Scheduled Tasks button

  3. In Backup Folder by User (followed by the server name), type the path or click Browse.... This is the folder where SQL Server writes all wizard, exit and scheduled backups. Type a path that exists on the server computer, such as D:\Backups\Alwaha. The program saves the value for this computer, and it also becomes the shared value that scheduled tasks read.

  4. If you click Browse... while a company file is open, the Index Backups By Server window opens. It shows a tree whose root is the server name, with the server's fixed drives below it and the free space beside each, such as [120000] MB Free. Expand a drive with the expand mark to see its folders, then expand the one you want. The box at the bottom shows the selected path and is read only.

    Click Ok to put the path in the field. If you selected only the server name, the message "Please Select Track" appears. Click Cancel to go back without a change. If the server is SQL Azure, the message "Not supported within SQL Azure" appears.

  5. Leave Backup Folder by Current PC and Temporary Backup Folder at their defaults unless you use removable-disk copies. These two folders serve backup to and restore from a removable disk only: the first is a folder on this computer where the files are prepared, the second is a temporary folder for compressing. The hard disk wizard does not use them. To change one, click Browse... next to it and choose a Windows folder. The default of the first is C:\Users\Public\Documents\Al-Ameen\10.0\Backup\ followed by the database name. The second is C:\Users\Public\Documents\Al-Ameen\10.0\Backup_Temp followed directly by the database name.

  6. In Warn When Restoring After, type the number of minutes. The text after it reads "Minute from Last Backup". The default is 15. The program uses it to decide which warning to show before a restore (see Restore a company file). If you type 0, no warning is shown, and the program asks at save time with the message no warn appear: click Yes to confirm. If you click No, the page stays open; the folders are already saved. The value belongs to each user.

  7. To add automatic backups, click Scheduled Tasks... in the Backup Schedule group. The button appears for users who have the Schedule permission. The scheduled tasks window opens. Details are in the next section.

  8. Click Ok to save the page and close the window, Apply to save and keep the window open, or Cancel to discard. When you change the server folder, the program tries to create the folder on your computer, and shows "Error in backup paths. Make sure of them." if it cannot. The program records the save in the log file.

To change the same values from the Backup wizard, click Settings at the top of the wizard window. It shows the three folders and the warning box, then you click Apply or Close. The server folder field there is a text box you type in, with no browse button.

Automatic backups​

The program takes backups automatically in two ways:

  • When you close it: the program asks about a backup whenever it closes, as described in Back up a company file. The option "Make a backup copy when Exit Program" in Program Options > File Options > Program controls it, and it is on by default.
  • On a schedule: you add a backup task in Scheduled Tasks... and choose daily, weekly or monthly. The task runs inside SQL Server itself, so the program does not have to be open.

At each scheduled run:

  • SQL Server takes a full copy of the database into the Backup folder for the server. If the folder was saved from the program on the server computer itself, tasks use that one. If no value is saved, it uses the folder recorded in the task.
  • The file name starts with letters that show the task type: ADJB_ daily, AWJB_ weekly, AMJB_ monthly. Then comes the database name, then the run date and time. Example: ADJB_AlwahaDb_20261130-020000.dat.
  • If a file with the same name already exists, it does not repeat the backup.
  • The task's Backup page has the Temporary Copies Count field. It is the number of newest copies the task keeps of its own type. After each run SQL Server deletes the older ones from disk. If you leave it empty or 0, nothing is deleted and the disks fill up over time.
  • This automatic clean-up skips copies that are marked as permanent (Permanent Copy). To keep one particular copy, you can also copy its file to another folder.

The program never deletes the manual wizard backups or the exit backups.

For the full scheduled tasks window see Schedule an automatic backup.

Result​

The values are used by the first backup or restore after you save. Automatic backups appear in Stored Backups together with the wizard backups.

If something goes wrong​

MessageWhy it appearsWhat to do
Please Select TrackYou clicked Ok in the index window without choosing a drive or folder.Expand a drive, select a folder, then click Ok.
Not supported within SQL AzureThe server is SQL Azure, which does not support this function.Use SQL Server Express, Standard or Enterprise for backups this way.
Error in backup paths. Make sure of them.The program could not create the folder on your computer.Use a path that can be created on your computer, or change it.
no warn appearYou typed 0 in Warn When Restoring After.Click Yes to cancel the warning, or change the value.

This page applies to alameen ERP 10, version 10.1.79.764.