[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference decwet::networker

Title:NetWorker
Notice:kits - 12-14, problem reporting - 41.*, basics 1-100
Moderator:DECWET::RANDALL.com::lenox
Created:Thu Oct 10 1996
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:750
Total number of notes:3361

210.0. "COMPRESSASM, and others directives, infos?" by BACHUS::DUPLICY (Bruno DUPLICY) Sun Dec 08 1996 10:43

T.RTitleUserPersonal
Name
DateLines
210.1DECWET::RWALKERRoger Walker - Media ChangersMon Dec 09 1996 10:1915
210.2SANITY::LEMONSAnd we thank you for your support.Mon May 05 1997 18:309
    Hi
    
    I have a situation where save commands are being executed in a UNIX
    script on a Digital UNIX V3 client system.  I want to enable the
    client-side compression feature.  I've read that save can be fed a
    directive via the -f option.  Is that they way to do what I need?
    
    Thanks!
    tl
210.3DECWET::RANDALLTue May 06 1997 14:0812
The -f option to save is one way to do what you want, although
I don't know exactly how to do this from a script.  The other
option is to put a .nsr file in directories that you want 
compressasm applied to.  So for instance if you put a .nsr file 
in / containing the following:

<< / >>
   +compressasm: .

all the files below / will be compressed.

-- Rich Randall
210.4SANITY::LEMONSAnd we thank you for your support.Tue May 06 1997 19:2017
    Thanks, Rich.  According the man page:
    
    "-f dirfile 
         The file from which to read prototype default directives (see
    nsr(5)). A dirfile of - causes the
         default directives to be read from standard input."
    
    So, if I put the code you mentioned in the previous reply into a file
    called 'foo', and had all my save commands use '-f foo', this should
    compress all data backed up by these saves, yes?
    
    Since there are many, many directories that are saved, and I want to
    compress them all, putting directive files in each directory doesn't,
    in my current case, seem like a good deal.  Would you concur?
    
    Thanks!
    tl
210.5DECWET::RANDALLWed May 07 1997 11:4512
I agree that the '-f' option is probably the best one.  Just to 
clear things up however, you don't have to put .nsr files into
every directory that you want compressasm used.  In the line

  +compressasm: .

the plus indicates that compressasm should be applied recursively to 
any directories within this directory.

Just a quick clarification.

-- Rich Randall
210.6SANITY::LEMONSAnd we thank you for your support.Thu May 22 1997 10:578
    Hi
    
    Is there a way I can run a save, and have it tell me if it IS using the
    directive?  I'd like to test this during the day, while I can keep my
    eye on it.
    
    Thanks!
    tl
210.7steel yourself...DECWET::EVANSNSR EngineeringFri May 23 1997 11:096
save -vvvv -f <dir-file>...

the -vvvv will tell you all about *everything* save is doing (walking, touching
 etc). 

The resulting output is NOT for the faint of heart.