This post is more than 5 years old
1 Rookie
•
5 Posts
0
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
No Events found!



crrnrc
1 Rookie
•
5 Posts
0
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 !
crazyrov
4 Operator
•
1.3K Posts
1
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
crazyrov
4 Operator
•
1.3K Posts
0
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.
crrnrc
1 Rookie
•
5 Posts
0
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
crrnrc
1 Rookie
•
5 Posts
0
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
GiordanoG
1 Message
0
May 9th, 2019 02:00
bingo.1
2.4K Posts
0
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