Skip to main content

Back up a company file

A backup is one file that holds the state of the company file's database at the moment you take it. You take it yourself in the Backup wizard, or alameen ERP 10 offers it when you close the program. Later you can restore it when needed.

Before you begin​

  • Open the company file and sign in. With no file open, the wizard offers only restore.
  • You need the To Hard Disk permission in the Users window. It is the permission for backup to the hard disk.
  • SQL Server writes the file, not the program. The folder must exist on the computer where SQL Server runs, and the SQL Server service account must be able to write to it. If SQL Server runs on your own computer, the default folder is enough.
  • Wait until operations running on the file have finished. SQL Server does not accept a backup while an operation is pending.

Steps​

  1. Click File, then Home.

  2. Click the Backup button. The Backup wizard opens on the page "Welcome to Backup & Restore Wizard".

  3. Click the Make Backup Copy on Hard Disk tile. If you do not see it, you do not have the To Hard Disk permission.

  4. Read the Server and Database names at the top of the page. The backup is taken from that database on that server.

    The Backup page of the wizard with the server, the database, the Notes box and the Start button

  5. Read the Notes box and edit it if you like. The program fills it with six lines: file name, database name, computer name (it shows the server name), user name, version number and date. The notes are stored with the backup and appear later in the restore list, so add what identifies this copy, such as Before period close. Keep them under 255 characters, the limit SQL Server sets for a backup description.

  6. Click Start. The program disables the buttons and blocks closing the window until it finishes.

  7. When the message "Operation completed successfully" appears, close it. The wizard window closes. If an error message from SQL Server came before it, "Operation completed successfully" may still appear although no copy was made, so check Stored Backups in the restore page.

To change the folder before you start, click Settings at the top of the window. The backup folders appear. Click Apply to save the change or Close to go back. The Settings button appears for users who may open the Backup page of Program Options. These options are explained in Set automatic backup options.

Result​

SQL Server writes a full copy of the database to a file with the .dat extension, and the program records the operation in the log file. The copy appears in the Stored Backups list of the restore page with its date, size and notes. The program also saves the date and time of this copy, to compare with them at any later restore.

A backup does not change your file's data and does not delete earlier backups.

Where the file goes​

The file goes to the Backup folder for the server.

  • The default folder on a standard Windows setup is C:\Users\Public\Documents\Al-Ameen\10.0\Backup\ followed by the database name.
  • The folder name is read on the computer where SQL Server runs. If SQL Server is on another computer on the network, type a path that exists on that computer, not on yours. The program also checks the folder on your computer and tries to create it, so use a path whose drives exist on both computers.
  • File name: the server name (backslashes replaced by underscores), then the database name, then the date and time in GMT, then the program version number. Example: ALWAHA-PC_AlwahaDb_261130_1015300123__10_1_79_740.dat.
  • The program never deletes manual backups. Every backup adds a file. Delete old files with the Delete button in the restore list, or from the folder itself. How scheduled backups clean up after themselves is explained in Set automatic backup options.

What is in the file​

The file is a full copy of the company file's SQL Server database: accounts, entries, invoices, materials, customers, users and their permissions, the options saved inside the file, and the log file. It does not include anything kept outside the database.

The program does not ask for compression. Whether the file is compressed depends on SQL Server's own backup compression setting, so the file may be about the size of the database.

The backup when you close the program​

When you close the program, alameen ERP 10 asks a question in a window titled "Make Backup Copy on Hard Disk": "Do you want to make a backup copy on the hard disk?". The question appears when all of this is true:

  • A company file is open.
  • You have the To Hard Disk permission.
  • The option "Make a backup copy when Exit Program" is on in Program Options. It is on by default and belongs to each user.
  • The program is not the demo version, and the file is not a subscription file.

It also appears when Windows shuts down while the program is open.

The exit backup question with the question, the Notes box and the Yes and No buttons

  • Click Yes to take the backup with the notes shown in the Notes box. The program then finishes closing.
  • Click No to close the program without a backup.

To turn the question off, clear the option "Make a backup copy when Exit Program" in File > Program Options > File Options, group Program. We advise against it unless a daily scheduled backup exists.

note

The exit question does not display the folder errors listed in the table below. If "Operation completed successfully" appears and you want to be sure, open the wizard the next day and check Stored Backups for a copy dated at the close.

If something goes wrong​

MessageWhy it appearsWhat to do
The path is incorrect by server, please check the path: followed by the file nameSQL Server could not write to the folder: it does not exist on the server computer, or the SQL Server service has no write permission.Create the folder on the server computer and give the service write permission, or choose another folder in Settings.
Error in backup paths. Make sure of them. followed by the pathThe program could not create the folder on your computer, for example because that drive does not exist on it.Use a path that can also be created on your computer.
Database is Opened By Users, followed by the backup file pathAn operation is running on the file during the backup.Wait for it or stop it, then retry.
An English message from SQL ServerAnother error from the server, such as a full disk. The message "Operation completed successfully" may still follow and the window closes, but no copy was made.Read the message, fix its cause, check Stored Backups, and retry.

This page applies to alameen ERP 10, version 10.1.79.764.