Get started
First sign-in
Choose the administrator's password on the server, sign in to the desktop app and the web dashboard, and reach the dashboard from other computers.
A new installation has one built-in administrator account with an initial password. SANAD Backup makes you replace that password before you can use anything else. Choose the new password on the server: in the desktop app, or with the command-line tool.
Why the web dashboard refuses the initial password
The installed web dashboard runs as a Windows service and answers everyone who can reach it. If it accepted the initial password, anyone signed in to the server could take over the administrator account through it. So the installed dashboard never accepts the initial password, and its sign-in page tells you to set the password on the server first. Once you have chosen a new password, you sign in to the dashboard with it as usual.
Option 1: choose the password in the desktop app
- Start the desktop app with administrator rights: choose Open SANAD Backup at the end of setup, or right-click SANAD Backup in the Start menu and choose Run as administrator.
- On the sign-in page, the note under the form explains which account a new installation starts with. Sign in with it.
- SANAD Backup shows Set a new password and no other page until you finish. Enter the Current password, the New password and Confirm new password, then choose Set password.
The new password must have:
- at least 8 characters,
- at least one uppercase letter (A–Z),
- at least one digit (0–9),
- and it must differ from the username and from the current password.
If a rule is not met, SANAD Backup lists every problem at once. When the password is set, the dashboard opens.
Option 2: choose the password with the command-line tool
Use this on a server without a desktop session, or when the administrator's password has been forgotten.
Open a new Command Prompt or Terminal window as administrator on the SANAD Backup server. A window opened before the installation does not have the tool on its PATH; there, use the full path
"C:\Program Files\Sanad\cli\Sanad.CLI.exe".Run:
Sanad.CLI user set-password adminThe tool shows which SANAD Backup database it will change and lists the password rules. Type the new password, then type it again. Nothing appears on the screen while you type.
The password is never accepted as an argument, from a pipe or from a file. The change is recorded in the audit log, and the account's other sessions end within about two minutes. The last word of the command is the account's username, which is case-sensitive; a new installation has only the built-in administrator account.
| Exit code | Meaning |
|---|---|
| 0 | The password was set. |
| 1 | Unexpected failure, for example the database was busy. Nothing changed. |
| 2 | Not an interactive console. Run it in an ordinary Command Prompt or Terminal window. |
| 3 | Not run as administrator. |
| 4 | No local account with that exact username. The tool lists the local accounts. |
| 5 | Three attempts did not meet the rules. Nothing was set. |
| 6 | No SANAD Backup database was found. Nothing was created. |
Sign in to the web dashboard
- On the server, open
http://localhost:5080in a browser, or the address chosen withWEBURLSduring installation. - Enter the username and the new password. The page shows Authenticator code only while two-factor authentication is turned on: enter the code from your authenticator app there, or leave it empty if you have not set one up. Tick Remember me to stay signed in on this device.
- Choose Sign in.
Over plain HTTP, only localhost, 127.0.0.1 and [::1] can sign in. The dashboard's session cookie is marked Secure, and browsers do not keep it on a plain http:// address with any other name, so the sign-in page simply comes back. To sign in from other computers, serve the dashboard over HTTPS (below).
Why the desktop app runs as administrator
The backup service creates SANAD Backup's data folder, %ProgramData%\Sanad, as Local System. A standard or non-elevated Windows session can read what the service created there but cannot change it, and the desktop app writes your connections, jobs and settings to that folder. So on a computer with the SANAD Backup services installed, always start the desktop app as administrator. Open SANAD Backup at the end of setup already does this.
Reach the dashboard from other computers
Choose one of these:
- Give the dashboard an HTTPS address and a certificate in
C:\Program Files\Sanad\web\appsettings.Production.json. You create this file; upgrades keep it. - Put a TLS reverse proxy on the server in front of
http://localhost:5080.
Web dashboard explains both. Next, add a connection to your SQL Server.
Set up and verify your first backup
On an empty installation, the dashboard explains four steps: add a connection, create a job, choose and test its destination, then verify recovery. It offers Add a connection, or Create your first job when a connection is already present. Accounts without permission to configure backups are directed to an administrator.
Once the job runs, restore a copy to a new database or empty folder and check the recovered data. The dashboard puts recent failed or partially successful runs above the statistics; Review backup history opens their results. These are recent run outcomes, so check history for any later successful recovery. Expand 7-day backup trend when you need the chart, and choose Refresh to reload the summary and recent results.