Announcement Banner

crrnrc

updated

12 years ago

C

crrnrc

1 Rookie

•

5 Posts

0

2640

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

  • crrnrc

    1 Rookie

    •

    5 Posts

    1699

    0

    Posted 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

    6 Operator

    •

    1319 Posts

    1699

    1

    Posted 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

    6 Operator

    •

    1319 Posts

    1699

    0

    Posted 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

    1699

    0

    Posted 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

    1699

    0

    Posted 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

    1557

    0

    Posted 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: *.*


  • bingo.1

    1 Rookie

    •

    2430 Posts

    1551

    0

    Posted 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