Backing up to a network drive or NAS
A NAS or a share on the server is always reachable, which makes it the ideal destination for an automatic backup. This article shows what matters when setting it up and where the limits are.
A share of its own for the backup
On the NAS, create a share that exists only for backups, for example backup, and in it one folder per workstation or per person. That keeps the backups separate from the working data and lets you set permissions precisely.
Network path or drive letter?
On Windows you can specify the destination in two ways:
| Form | Example | Property |
|---|---|---|
| Network path (UNC) | \\nas\backup\anna | Independent of whether the drive is mapped and under which letter. The more robust choice for automatic backups. |
| Mapped drive | Z:\anna | Convenient, but only works if the drive is mapped for the signed-in user. |
WIN_DASI accepts both as the destination folder. On Linux you give the path under which the share is mounted.
Permissions
- The user the backup runs under needs write access to the backup folder.
- Give each workstation access only to its own backup folder. Then an infected computer cannot damage the backups of the others.
- For an automatic backup the credentials for the share have to be saved so that no password prompt appears.
Backing up automatically
Because the NAS is always there, a schedule suggests itself: daily at a time when the computer is running and on the network, for instance during the lunch break. With the option “Back up new and changed files only”, the daily backup takes only as long as the day’s changes require. Setting up automatic backup
For laptops that are not always on the office network, the backup is skipped on days when the NAS cannot be reached. The log shows this. For such devices choose days of the week on which they are in the office, or add an express icon.
A NAS is not a safe
A NAS with two mirrored drives (RAID 1) survives the failure of one drive. That is protection against failure, not a backup: a deleted file is deleted on both drives, an encrypted one is encrypted on both. And the NAS stands in the same building as the computers.
That is why a NAS needs a second stage:
- Regularly back up the important folders of the NAS to an external drive that is kept off the premises, or
- use the backup function of the NAS, if it has one, to a second device at a different location.
More on this: The 3-2-1 rule.
Protection against malware
Encryption trojans attack everything the infected user can write to, including network drives. Three measures limit the damage:
- tight permissions, as described above,
- snapshots on the NAS, if the device offers them; they let you bring back earlier states of a share,
- a backup that is kept disconnected from the network.
If backing up to the NAS is slow
- Wi-Fi instead of cable: the first, large backup runs many times faster over a network cable.
- A great many small files: they take considerably longer over the network than a few large ones. From the second backup on, the option to copy only what has changed helps.
- Verification of copies: it reads every file a second time over the network. Switch it off for the daily backup and on for an occasional full check.