Excluding a directory from CMU backup (364 Views)
Reply
Occasional Contributor
TZ-HPC
Posts: 3
Registered: ‎02-06-2013
Message 1 of 2 (364 Views)

Excluding a directory from CMU backup

Hi,

 

is there a way to exclude a directory from the backup process?

 

Let's assume there is a /scratch directory on e.g. the root-partition and there is no need to backup/clone this typically rather large directory.

 

 

Best regards,

 

T.Z.

Occasional Advisor
Dave-SBS
Posts: 9
Registered: ‎07-27-2012
Message 2 of 2 (344 Views)

Re: Excluding a directory from CMU backup

[ Edited ]

(Edited my reply)

 

There is no need to exclude it.

 

If you don't want the contents of /scratch, then simply delete the contents of it before you run the backup.  CMU IS capturing the entire partition.  The backup function is only using tar to capture the files that are on disk, so you should be deleting anything that does not need to be in the image anyway.

 

You want the other nodes to actually have a /scratch directory, so why not backup an empty one.  Then you do not have to script the creation of one in the reconf.sh.

 

Also remember that CMU only backups up one "disk."  So, if you defined sda as the disk device for that LG, then CMU will not backup sdb (which is where /scratch is typically located if a node has two disks).

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.