Sparse Files Were Skipped (code 1551)
Situation
A backup plan completed with the following warning message: Sparse files were skipped: Backup of Sparse files is not supported.
Skipping sparse files does not affect the backup of other supported files. The backup operation continues normally, and only the unsupported sparse files are omitted.
Cause
Sparse files are files that contain large regions of empty or unallocated data. Instead of storing these empty regions on disk, the file system records them as gaps, allowing the file to appear much larger than the actual disk space it occupies. Sparse files are commonly used by virtual machine disks, databases, disk images, and applications that allocate large files in advance.
MSP360 Backup does not support backing up sparse files. During a backup, any sparse files that are detected are skipped and are not included in the backup.
How to identify sparse files
Windows: fsutil sparse queryflag
Solutions
Solution 1
If you need to back up the data contained in a sparse file, convert the file to a regular (non-sparse) file before running the backup.
Converting a sparse file to a regular file may significantly increase the amount of disk space it occupies because all previously unallocated regions are written to disk
The conversion method depends on the operating system. In general, you need to create a new file and copy the data in a way that writes all allocated and unallocated regions to disk, producing a regular (non-sparse) file.
Windows
Copy the file with 'fsutil'.
- Open Command Prompt as an administrator.
- Check whether the file is sparse:
fsutil sparse queryflag "C:\path\to\file"
C:\path\to\file - use the path to the sparse file
- Create a regular copy of the file. For example:
copy "C:\path\to\sparse.file" "C:\path\to\regular.file"
- Verify that the new file is no longer sparse:
fsutil sparse queryflag "C:\path\to\regular.file"
Some copy utilities preserve the sparse attribute. If the copied file is still sparse, use a different copy tool or application that writes the file contents without preserving sparse regions
Linux
Use 'cp' with the '--sparse=never' option:
cp --sparse=never sparse.file regular.file
Alternatively, use 'dd':
dd if=sparse.file of=regular.file bs=1M
Verify the result:
ls -ls sparse.file regular.file
du -h sparse.file regular.file
The regular file should occupy approximately its full logical size on disk.
macOS
macOS does not provide a built-in tool specifically for converting sparse files. In most cases, creating a new copy of the file using an application that rewrites its contents produces a regular file. Depending on the file type, you can also use:
cp -c sparse.file regular.file
or
dd if=sparse.file of=regular.file bs=1m
Workaround
Exclude the affected sparse files from the source scope of your backup plan.