Backing up servers and PCs, with windows and rotation

John Smith Ltd has just put Atlas into service and wants everything that matters saved every night: the appliance itself (shared files, mail, configuration, databases, domain) and two office…

Situation

John Smith Ltd has just put Atlas into service and wants everything that matters saved every night: the appliance itself (shared files, mail, configuration, databases, domain) and two office machines, the accounting PC pc-admin-01 (Windows 11, 192.168.10.57) and the business-software server srv-erp (192.168.10.41, Linux).

Laura White, who looks after IT, wants the following:

  • the appliance data on two USB disks that alternate (one for odd days, one for even days), to be taken home in turn, plus a monthly copy on the NAS nas.johnsmith.test;
  • the shared files also saved continuously, not only at night;
  • the PC and the server on a single copy per machine, with no alternating media, on the NAS (the «No rotation» cycle);
  • a start time that does not clash with work, and an execution window wide enough to catch up a PC that was switched off in the evening;
  • an email to lwhite@johnsmith.test when something goes wrong.

Backup does not depend on any module and is present on every appliance. The Backup chapter describes every page and every field; here you follow a single story from start to final test.

What you need

  • A console administrator (lwhite).
  • The NAS nas.johnsmith.test (192.168.10.20) with a share backup-atlas and the user backup-atlas with its password.
  • Two USB disks, already formatted and connected to the appliance, mounted at /media/backup-a and /media/backup-b (mounting is done by the technician, not by the console: whenever you swap a disk it must be reconnected to the same mount point).
  • A safe place outside the appliance (the office password manager) to keep the archive password.
  • Administrator access to the PC and the server to be backed up, to install the agent.
  • The backup port reachable: clients talk to the appliance on tcp port 8443 (see steps 21–22).

Warning The archive encryption password is the only key to all the backups. It is set once and can neither be changed nor recovered. If you lose it, the backups exist but nobody can open them, and the appliance’s full restore will not start either. Keep it outside the appliance before doing anything else.

Steps

The archive password

  1. Open System → Settings and go to the «Backup» block. In the «Security» section press «Set».
  2. In the «Set archive password» window press the icon next to «Archive encryption password» to generate a strong 16-character password (or type your own: at least 10 characters with an uppercase letter, a lowercase letter and a digit). Repeat it in «Confirm password» and confirm.
  3. Copy the password straight away into the office password manager. The «Show password» button reveals it, but only as long as the appliance is alive.

Until the password exists, the «New storage» button is disabled and no backup starts.

The storages: the two USB disks and the NAS

  1. Open Backup → Storage and press «New storage». «Name» Disk A, «Type» «Local folder». Press «Browse», in the «Choose a folder» window go to /media/backup-a and press «Use this folder». Press «Save».
  2. Repeat for the second one: «Name» Disk B, folder /media/backup-b.
  3. Create the third: «Name» Office NAS, «Type» «CIFS / SMB share», «Host» nas.johnsmith.test, «User» backup-atlas, «Password» <password>. Then pick the entry backup-atlas from the «Share» list and «SMB version» SMB 3. Press «Save».
  4. Select one storage at a time and press «Test». You must read «Storage valid» for all three. When a storage is created its destination is initialized automatically: if the warning «Storage saved, but not initialized» appears instead, read the reason and, when the destination is the right one, press «Initialize».
John Smith Ltd's storagesJohn Smith Ltd's storages
John Smith Ltd's storages

For the technician Every destination carries an identity marker (edon-backup/.edon-storage) written at initialization. Every job checks it before writing: if it is missing the job stays on hold («Storage not initialized»), if it belongs to another storage the job does not start («Destination differs from the initialized one»). For a local folder on the system disk without a marker, the appliance assumes the external disk is not connected («Disk not connected») and does not re-initialize: this way an unplugged USB disk does not make the backups write to the system disk underneath the mount point.

The appliance schedules

  1. Go back to System → Settings, «Backup» block, «Schedule» section. Set «Backup time» 22:00 and leave «Days to run the backup» from Monday to Friday. Under «Holidays» add 2026-12-25 and 2026-12-26 with «Add date».
  2. In the «Targets» section turn on «Alternate daily storage»: under «Even days» choose Disk B, under «Odd days» choose Disk A.
  3. Still in «Targets» turn on «Monthly snapshots» and choose Office NAS. A backup is made on the second working day of every month.
  4. Also turn on «Continuous backup» and choose Office NAS. It saves only files and shared folders, every day, in an archive of its own.
  5. The appliance does not need «No rotation»: the alternating disks and the NAS are enough. You could turn it on alongside the other cycles (it would start after them); here you will use that cycle for the clients.

The choice in step 9 (alternating dailies) is the disk rotation: odd days write to Disk A, even days to Disk B. The «day» is the one the cycle was scheduled for: a daily of the 5th run on the 6th still writes to the odd-days archive.

Retention

  1. Still in the «Backup» block, «Retention» table: in the «Daily» row type 14 in «Daily» and 8 in «Weekly»; in the «Monthly» row type 24 in «Monthly»; in the «Continuous» row leave 24 «Hourly» and 7 «Daily». These are the initial values: change them only if you have a reason. An empty cell or 0 means «do not apply this rule», and a row left completely empty disables the cleanup of that type (snapshots pile up and the disk fills).

Execution windows

  1. In the «Execution windows» section set:

    Field Value Why
    «Execution window (hours)» 12 an appliance cycle that cannot start (disk missing, NAS off) retries until 10:00 the next morning, then closes as not run
    «Maximum duration (hours)» 6 an appliance backup that lasts more than 6 hours is stopped
    «Clients’ execution window (hours)» 16 a PC switched off at 20:00 can still start up to 12:00 the next day, when it is switched on
    «Clients’ maximum duration (hours)» 8 the same, for duration, on each client

    They are whole numbers from 1 to 168. The client settings apply to all clients that have no values of their own (see step 25).

For the technician A «cycle» is identified by owner, type and scheduled start. The queue runs one job at a time per archive. A cycle that is not closed while its window is still open retries; once the window has expired it closes as «Execution window expired» and the email is sent. Only the last scheduled cycle and the one before are looked at: an appliance switched off for days produces at most two closures per type. The maximum duration stops the appliance backup during the data copy, not in the exports that precede it nor in the cleanup that follows it, and never stops the continuous one; on clients it applies in every phase.

Notifications

  1. «Mail notifications» section: «Email address» lwhite@johnsmith.test, «Type» «Only on error». Turn on «Notify requests» to be warned also when a backup is left waiting for its storage.
  2. Check that the postmaster address exists: it is the sender of the emails. If it is missing, the email is not sent («Postmaster not configured»). It is set in the mail settings (see Mail); without the Mail module these fields are disabled. The notification centre sends the emails, through the system destination «Backup · esiti» that follows these fields (see The notification centre).
  3. Press «Apply». If a cycle points to a storage that is not ready, the console refuses and tells you why.

The appliance’s first backup

  1. In the «Backup» block press «Run now». With several cycles turned on the console first asks «Choose which schedule to run.» (choose the daily one), then «Choose the storage to run the backup on.» (Disk A). The answer is «Backup started.» or «Backup queued: it starts when the running one finishes.».
  2. Open Backup → In progress: the job appears with status «In progress». The page refreshes by itself every 10 seconds.
  3. When it has finished open Backup → Logs: you find «Backup finished». In Backup → Repositories the archives of the cycles just run appear («Daily (odd)» or «(even)», «Continuous»).

The clients: open the port and install the agent

  1. Open Network → Local firewall and under «Services» turn on «Backup», with «Reachable from» «LAN and VPN sites» (the PC and the server are in the office, which reaches Atlas through the Argos tunnel: see the Network chapter). Press «Apply» and confirm.

  2. Open Backup → Clients: if «Backup port closed by the local firewall» appears at the top, step 21 did not go through. The «Open the local firewall» button takes you to the right page.

  3. On the server srv-erp (Debian) download and install the agent’s package, then register the client:

    wget https://download.edon.systems/edon-agent-amd64.deb
    sudo apt install ./edon-agent-amd64.deb
    sudo edon-agent init --server https://atlas.johnsmith.test

    The agent shows Atlas’s certificate fingerprint: compare it with that of the console’s certificate (in the browser’s padlock details) and answer y. Then it asks for the user and password of an administrator (lwhite). The private key is born on the server and never leaves it. The suggested paths are /etc,/home. The last line is Enrolled as client … (srv-erp). Agent installed and started.

  4. On the PC pc-admin-01 (Windows) open the console in the browser, click the «Downloads» icon on the sign-in page and download edon-agent-win64.exe from the «EDON Agent» category. Run it as administrator: on the «Server EDON» page type atlas.johnsmith.test, on the «Credenziali» page lwhite and their password. The suggested path is C:\Users.

The other systems (Rocky, macOS, 32-bit Windows) and the registration options are in the Backup chapter, «Clients» section.

The two clients appear in Backup → Clients with the labels «Authorized» and «Enabled». If a client shows «Not authorized» or has no certificate, its commands stay disabled: register again from the agent.

The client listThe client list
The client list

What to save and when, for each client

  1. Select pc-admin-01. In the «Client» tab check «Associated IP»: 192.168.10.57. Put Administration PC in «Description»; there is a single «Save», at the bottom of the card, for everything: you press it after steps 25–28.
  2. In the «Included folders» block press «Folders»: the «Browse» window queries the PC. Open C: → Users → jgreen and tick Documents; repeat for jbrown; «Confirm». With an empty list the client saves nothing («No folders configured: the client will back up nothing.»).
  3. In «Excluded folders» add C:\Users\jgreen\Documents\Temp: it stays out of the backup with all its contents, even inside an included folder. (Valid from agent 1.4.4.)
  4. In the client’s schedule block, turn off the rotating cycles that the module copied from the appliance and turn on «No rotation» with the storage Office NAS. Set «Backup time» 20:00. Leave «Execution window (hours)» and «Maximum duration (hours)» empty: the client values from step 14 apply as placeholders. Press «Save» at the bottom of the card: it saves the client’s data, included and excluded folders and schedule together.
  5. Select srv-erp and repeat steps 25–28: «Associated IP» 192.168.10.41, included folders /etc, /home and /var/backups/erp, the «No rotation» cycle on Office NAS, time 23:30. For this server write a «Maximum duration (hours)» of its own in the schedule block, 6: the backup must finish before people start working on the data again in the morning.

The form of a new client is pre-filled with the appliance’s values, but it is not saved until you press «Save» at the bottom of the card. If you leave it as it is, the client would use the USB disk rotation, which makes no sense from the PC.

Tip «No rotation» writes a single archive per machine on a single storage and has its own row in the «Retention» table: its snapshots are governed by the rules of that row. On a client it can stay on alongside the rotating cycles if its agent is up to date (from version 1.5.0); with an older agent the console refuses to save and asks you to update it.

A dump before the backup (Linux servers only)

  1. If the business software keeps its data in a database, have it write to a file before the backup starts: on Linux servers the agent runs, before every job, all the executables in /etc/edon/agent.d/hooks/pre.d/ and those in post.d/ afterwards. An example for PostgreSQL, saved as /etc/edon/agent.d/hooks/pre.d/10-dump-erp and made executable:

    #!/bin/sh
    set -e
    pg_dump -U erp erp > /var/backups/erp/erp.sql

    The path /var/backups/erp is among the included folders of step 29. A pre-hook that fails makes the job fail, which retries after 30 minutes. Hooks do not exist on Windows.

Trying a client and an estimate

  1. Select pc-admin-01 and press «Estimate»: it asks the client to estimate the size of the backup for one cycle, before filling the NAS.
  2. Press «Run now»: choose the storage Office NAS and the «No rotation» cycle. The command does not start instantly: the client picks it up at its next contact. «Command queued: the client runs it at its next contact. If it does not collect it within an hour, the command expires.» appears and the outcome arrives in the notification bell.
  3. Repeat for srv-erp.

Check

  • Backup → Planned (period «7 days»): you see the next cycles, both «EDON» and pc-admin-01 and srv-erp, with date, time and storage. The continuous backup does not appear: it has no schedule time.
  • Backup → Logs: for each machine you find «Backup started» and «Backup finished» with repository, duration, new files and snapshot. A job that ends with unreadable files is not a failure, but «OK with warnings».
  • Backup → Repositories: for each client there is the «No rotation» archive; for the appliance «Daily (odd)», «Daily (even)», «Monthly» and «Continuous».
  • System → Status, «Backup» panel: the list of the latest jobs with their outcome; a click on a row opens that job’s log.
  • The next morning, Backup → Logs of the night: one «Backup finished» for each.
  • The test that matters: restore a file (even just one) from each machine following Restoring a deleted file, a mailbox, a whole server. A backup that has never been restored is not a backup.

If something goes wrong

  • «Waiting for storage» with reason «Disk not connected». The USB disk is not mounted at the storage’s mount point. Reconnect (or remount) it and press «Test» in Backup → Storage. As long as the execution window is open the job retries by itself.
  • «Destination differs from the initialized one». You connected the wrong disk to that mount point, or a new empty disk. With a new empty disk the reason is «Destination not initialized»: «Initialize» prepares it, but the old archives of that storage disappear from the lists; the next cycle starts again from a full copy.
  • «Client refused: it connects from an address that is not authorized». The client presents itself from an address different from «Associated IP»: a network change, a NAT or the tunnel. Behind Argos the address the appliance sees may not be the PC’s: read it in the Logs («Client refused») and correct «Associated IP» in the client’s tab. If you do not know which it is, check the tunnel rules in the Argos manual.
  • All the client’s buttons are disabled. Either port 8443 is missing (warning «Backup port closed by the local firewall»), or the client is «Not authorized», or it is «Disabled».
  • «Execution window expired» every morning for the PC. The PC is off beyond the window: either leave it on until the cycle time, or move «Backup time» to midday, or widen «Clients’ execution window (hours)» (maximum 168).
  • «No space left on the storage». The job retries after 15 minutes and sends the email. Free up space or lower the «Retention» rules. To free an archive that is no longer needed: Backup → Repositories, «Remove» with «Delete all data».
  • «Command expired» for a client’s «Run now». The PC was off or the agent stopped: the command was not picked up within an hour.
  • The backups of an old agent do not resume a cycle after midnight. Update the agent.
  • «Archive damaged or wrong password». Permanent failure with email. Check that you have not changed the archive password (you cannot) and that the media is the right one.
LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer