T.R | Title | User | Personal Name | Date | Lines |
---|
210.1 | | DECWET::RWALKER | Roger Walker - Media Changers | Mon Dec 09 1996 10:19 | 15 |
210.2 | | SANITY::LEMONS | And we thank you for your support. | Mon May 05 1997 18:30 | 9 |
| 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.3 | | DECWET::RANDALL | | Tue May 06 1997 14:08 | 12 |
| 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.4 | | SANITY::LEMONS | And we thank you for your support. | Tue May 06 1997 19:20 | 17 |
| 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.5 | | DECWET::RANDALL | | Wed May 07 1997 11:45 | 12 |
| 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.6 | | SANITY::LEMONS | And we thank you for your support. | Thu May 22 1997 10:57 | 8 |
| 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.7 | steel yourself... | DECWET::EVANS | NSR Engineering | Fri May 23 1997 11:09 | 6 |
| 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.
|