This post is more than 5 years old

1 Rookie

 • 

5 Posts

2499

September 9th, 2014 06:00

Backup only certain file types in Networker

Hello everybody,

which is the best way to backup only certain file types in a specific path and all its subfolders?

e.g. : how to backup only txt files in /home and all its subfolders (including all user's home directories)?

Thank you for your support

Enrico

1 Rookie

 • 

5 Posts

September 9th, 2014 07:00

I found the right way:

client's save set:    /home/   (/home without the last / won't work)

Directive:

<>

+always: *.txt

+skip: *.*

thank you again crazyrov !

4 Operator

 • 

1.3K Posts

September 9th, 2014 06:00

You can achieve this using directives. Create a new directive and populate the following text into it

<>

+skip: *

+always: *.txt

4 Operator

 • 

1.3K Posts

September 9th, 2014 07:00

Have you tried changing the order in the directive, skip first and then the always directive.

I know "forget" works this way but only on directories.

1 Rookie

 • 

5 Posts

September 9th, 2014 07:00

Hello crazyrov

thank you for the quick reply.

I tried the directive you suggested me but only the folders have been saved.

I also tried

<>

+always: *.txt

+skip: *

but nothing changed.

The client's saveset is:    /home

1 Rookie

 • 

5 Posts

September 9th, 2014 07:00

Here an output for nsrinfo

scanning client `XXXX' for savetime 1410272307(09/09/2014 16:18:27) from the backup namespace

/home/

/home//

/

3 objects found

1 Message

May 9th, 2019 02:00

hi i tried the following syntax but it seems to not work.
Back up excluding unnecessary files on the indicated folder works, 
but does not enter subdirectories and * .zip files in subdirectories are not backed up.

It's a windows client, networker version 9.1.1.0.

I use the sintax:
<<"E:\example">>
+always: *.zip
+skip: *.*


2.4K Posts

May 9th, 2019 03:00

You should upgrade to NW 9.2+ which allows wildcards for directories.

Be careful - the appropriate pages may still be missing in the latest 9.2 Admin Guide. But they do exist in the one for NW 18.x

 

 

No Events found!

Top