How File-Level Backup Works

During file-level backup, Veeam Agent performs the following operations for every backup job session:

  1. When a new job session starts, Veeam Agent creates a backup file in the target location.
  2. In the backup file, Veeam Agent creates a disk. The disk contains a volume with the ext4 file system.
  3. Veeam Agent creates a snapshot of the volume which data you want to back up. The snapshot is created on the volume that has enough free disk space to contain the snapshot data. To create a snapshot, Veeam Agent uses the Veeam Agent for Linux Driver.

The snapshot helps make sure that the data on the volume is consistent and does not change at the moment of backup. If a data block is about to change on disk during backup, Veeam Agent will copy this block to the snapshot. After the data block is overwritten on the source location, its original copy will remain intact in the snapshot.

 

How File-Level Backup Works TIP

Mind the following:

  • You can also set up Veeam Agent to create a file-level backup in the snapshot-less mode. This mode allows you to back up data that resides in any file system mounted to the root file system of the Veeam Agent computer. However, Veeam Agent does not track whether source files have changed since the backup process start. To learn more, see Snapshot-Less File-Level Backup.
  • Compared to the volume-level backup, the file-level backup, Veeam Agent does not provide changed block tracking mechanism and does not split source files into data blocks. As a result, if you plan to back up a significant amount of data, the file-level backup will require greater time, and created backup files will have greater size.

For example, you have a 1 GB file, and since the previous backup session only one data block of this file has changed. In case of the file-level backup, Veeam Agent will send the whole 1 GB file to the target again.

  1. [For incremental backup] To detect files that changed on the Veeam Agent computer since the previous backup session, Veeam Agent reads file metadata and compares last modification time of files in the original location and files in the backup created during the previous job session. If the file has modification time later than the previous job session start time, Veeam Agent considers the file as changed.

To learn about full and incremental backup, see Backup Chain.

  1. [For incremental backup] Veeam Agent calculates checksums for each data block and compares them with checksums from the backup file created during the previous job session. If checksums do not match, Veeam Agent will copy the data block to the target location during the next backup process step.
  2. Veeam Agent copies data that you selected for backup to the target location. As part of this process, Veeam Agent performs the following operations:
  1. Enumerates all files in the source location.
  2. For each enumerated file, creates a target file in the volume inside the backup file.
  3. Opens the source and the target files.
  4. Copies file data to the target location from the following sources:
  • Data blocks that did not change on disk during backup are transferred from the source volume.
  • Data blocks that changed on disk during backup are transferred from the snapshot.
  1. Closes the source and target files.

After all backed-up files and directories are transferred, Veeam Agent removes the snapshot.

How File-Level Backup Works