Unsolved

This post is more than 5 years old

1313

December 10th, 2009 01:00

How to create only one local directive on Unix to skip/backup filesystems

I want to create only one local directive on a node in the root directory where I can specify which filesystems to backup and which to skip. (As described in esg 54408). I have created directive .nsr in / :

<< / >>

uasm:tmp

skip:*

So in the above example it should skip everything, but only backup /tmp.  I kicked off the backup for this client from the GUI and it parses the directive, but then backs up all everything as usual.  The client is not configured with a global directive and "All" is set. Can this local directive be used for a scheduled backup or manual backup from the GUI? The idea is to have one single local direcrive on the system, which can be managed by the system administrators.

2 Intern

 • 

150 Posts

December 10th, 2009 01:00

Try just revrsing the sequence as:

<< / >>

skip:*

uasm:tmp

I hope it should work

December 10th, 2009 01:00

Nope, does not make a difference, still backs up everything.

2 Intern

 • 

150 Posts

December 10th, 2009 02:00

If you want to backup only /tmp then you can try this.

<>

skip: *.*

<

forget

This works with global directive. I am not 100% sure with local directive.

2 Intern

 • 

150 Posts

December 10th, 2009 03:00

In that case I will suggest to go for global directives

December 10th, 2009 03:00

No unfortunately not working.

194 Posts

December 10th, 2009 06:00

I've noticed that when you use local directives on Unix systems you have to specify relative paths and not absolute paths.  So try this in your /.nsr file:

<< ./ >>

skip: * .*

<< ./tmp >>

forget

96 Posts

December 10th, 2009 07:00

Please try the .nsr file like this, without '<< / >>' and include blanks after the colons:

uasm: tmp

+skip: * .?*

December 11th, 2009 01:00

After doing some extensive testing and carefully reading esg54408 again, here are the results :

It seems as if one wants only one local directive in /, you have to make use of headers i.e. you have to specify the filesystems in a header.  If you create a header << / >>, it will only follow the directories in /, not the mounted filesystems, for example if you only want to backup the directory "etc", you do the folllowing:

<< / >>

uasm: etc

skip: *

etc a directory under / (and not a mounted filesystem) gets backed up and all other directories under / are skipped. If you want to skip another mounted filesytem, say /usr, you have to create the header and use skip i.e.

<<  /usr >>

+skip: *

The mounted filesystems are not skipped under / if you specify skip and if you specify +skip (with or without the << / >> header), then all mounted filesystems are skipped.

uasm can be used multiple times under a header to backup only certain directories.

I have also tested the absolute and relative paths and both works when the directive is in /.

Message was edited by: Stephanus

Message was edited by: Stephanus

No Events found!

Top