Macrium Support Forum

hiberfil,sys, pagefile.sys and swapfile.sys are not being excluded

https://forum.macrium.com/Topic16013.aspx

By PhysicalEd - 31 July 2017 6:18 PM

I was poking around the contents of my latest backup because I've been puzzled at why my weekly incremental backups are so large. I found that hiberfil.sys, pagefile.sys and swapfile.sys are all being incrementally backed up (along with a bunch of files like pagefile.sys~001), even though these files are listed in the files to exclude filter.This is what my Exclude Files filter looks like:*.temp; *.tmp; *.bak; *.~*;c:\hiberfil.sys;c:\swapfile.sys;c:\pagefile.sysThis is what the XML view has:  <exclude_file_filter>*.temp; *.tmp; *.bak; *.~*;c:\hiberfil.sys;c:\swapfile.sys;c:\pagefile.sys</exclude_file_filter> This seems so simple, I don't see what I am doing wrong.Thanks for any help.
By Nick - 31 July 2017 8:27 PM

@PhysicalEd

Thanks for posting. 

File exclusions are for specifying file names not including paths. Please change your exclusions to:

*.temp; *.tmp; *.bak; *.~*; hiberfil.sys; swapfile.sys; pagefile.sys
By PhysicalEd - 31 July 2017 10:54 PM

Thanks! I knew it had to be something simple!
By twgonder - 20 February 2020 12:42 AM

In version 7.2, can we specify these files to be excluded in an image backup?
hiberfil.sys; swapfile.sys; pagefile.sys

If so, where?
By Nick - 20 February 2020 12:51 AM

twgonder - 20 February 2020 12:42 AM
In version 7.2, can we specify these files to be excluded in an image backup?
hiberfil.sys; swapfile.sys; pagefile.sys

If so, where?

Thanks for posting.

The contents of hiberfil,sys, swapfile.sys and pagefile.sys are always excluded form images as they have no purpose in an offline file system. You will still see them in the imaged file system directory but they are represented 'sparse' files in the image. They contain no data and add zero bytes to the image file size. 

https://en.wikipedia.org/wiki/Sparse_file
By twgonder - 20 February 2020 3:31 PM

Thanks for the answer Nick. 
The answer seems to contradict the original post and your answer there. But maybe it is a new feature in Reflect?
To continue, suppose we want to exclude .tmp and .bak files. Can that be done? And where?
By jphughan - 20 February 2020 3:47 PM

twgonder - 20 February 2020 3:31 PM
Thanks for the answer Nick. 
The answer seems to contradict the original post and your answer there. But maybe it is a new feature in Reflect?
To continue, suppose we want to exclude .tmp and .bak files. Can that be done? And where?

The original post of this thread related to File & Folder backups, as did Nick's first answer.  The follow-up you wrote here asked about image backups, even though this is the File & Folder section of the forum, and Nick's reply to you specifically indicated that it pertained to image backups.  The only way to exclude content from an image backup is detailed in this guide, although it only works with backups that use VSS (i.e. not backups performed from Rescue Media), and note that Macrium indicates that it is not 100% reliable.
By twgonder - 20 February 2020 6:23 PM

Ahhh, thank you. I looked in the original message for if the question pertained to file or images.
I did a generic search and missed that it was in the File and Folder Backup part of the forum.
I'll check the link. Thanks again.