🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.notes
5 messages
5 total messages Started by Greg Klein Tue, 23 May 1989 01:47
nfarchive question
#132
Author: Greg Klein
Date: Tue, 23 May 1989 01:47
21 lines
1348 bytes
Is there a convenient way to archive everything EXCEPT certain notesfiles?
In particular, every week (via cron) I run the following:

nfarchive -14 -d "*"

to delete ALL notesfiles that are 14 days old.  But now, suppose I would like
to archive all notesfiles in this way, except one called "stuff".  I could
replace the "*" with an explicit list of all notesfiles except "stuff" (or
list them in a file and use the -f option) but the list would be hard to
maintain unless it is generated dynamically, but this would be cumbersome.

I have notes version 2.7.

Sorry if this is not an appropriate place to be asking notes questions but
I don't know of a better place.

=========================================================================
Greg Klein				| Microcomputer Electronics Corp.
voice:	(206)821-2800 x702		| 12421 Willows Rd, NE
uucp:	...!hplabs!hpubvwa!mechp!klein	| Kirkland WA, USA 98034
=========================================================================
Re: nfarchive question
#133
Author: Bob Jewett
Date: Wed, 24 May 1989 21:59
23 lines
1309 bytes
> But now, suppose I would like
> to archive all notesfiles in this way, except one called "stuff".

One way is to have a file "specials" with all special groups in it, then do:

    fgrep -vxf specials ~notes/Active | grep -v '^!!' > fortnightly
    nfarchive -14 -d -f fortnightly

The -x option to fgrep requires a full-line match on patterns, so that
comp.stuff will not also be matched.

Instead, I maintain a master list of expiration times, and the weekly
cleanup script forms the weekly, fortnightly, monthly, monthly-save, and
never-touch lists for nfarchive from that list.  The weekly script also
looks for groups in Active that are not yet in the master list, and
posts a nastygram to nfmaint.

> Sorry if this is not an appropriate place to be asking notes questions but
> I don't know of a better place.

hug.general (if you get it) gets more exposure within HP.

Bob Jewett
Re: nfarchive question
#130
Author: Scott Blachowicz
Date: Wed, 24 May 1989 22:42
15 lines
1045 bytes
/ grlab:news.software.notes / klein@mechp.UUCP (Greg Klein) /  6:47 pm  May 22, 1989 /
> Is there a convenient way to archive everything EXCEPT certain notesfiles?
> In particular, every week (via cron) I run the following:
> 
> nfarchive -14 -d "*"
> 
> to delete ALL notesfiles that are 14 days old.  But now, suppose I would like
> to archive all notesfiles in this way, except one called "stuff".  I could
Does this work? I think it should.
  nfarchive -14 -d '*' '!stuff'

Scott Blachowicz
USPS:  Graphicus                UUCP:    ...!hpubvwa!grlab!scott
       150 Lake Str S, #206     VoicePh: 206/828-4691
       Kirkland, WA 98033       FAX:     206/828-4236
Re: nfarchive question
#128
Author: schwager
Date: Thu, 25 May 1989 03:37
15 lines
1034 bytes
> /* ---------- "nfarchive question" ---------- */
> Is there a convenient way to archive everything EXCEPT certain notesfiles?
> In particular, every week (via cron) I run the following:
> 
> nfarchive -14 -d "*"
> 
> I have notes version 2.7.

You should be able to specify the expiration time from the director's
page, no?  So for certain notesfiles, you can specify "Never".

-Mike Schwager				schwager@a.cs.uiuc.edu
-- {uunet,convex,pur-ee}!uiucdcs!schwager   schwager%uiuc@csnet-relay.arpa
	University of Illinois, Dept. of Computer Science
Re: nfarchive question
#129
Author: Jacob Gore
Date: Thu, 25 May 1989 21:27
15 lines
950 bytes
/ news.software.notes / klein@mechp.UUCP (Greg Klein) / May 22, 1989 /
>Is there a convenient way to archive everything EXCEPT certain notesfiles?
>In particular, every week (via cron) I run the following:
>
>nfarchive -14 -d "*"
>
>to delete ALL notesfiles that are 14 days old.  But now, suppose I would like
>to archive all notesfiles in this way, except one called "stuff".

Have you tried the usual .notesrc notation?

	nfarchive -14 -d "* !stuff !alt.*"  # etc.

Jacob Gore				Gore@EECS.NWU.Edu
Northwestern Univ., EECS Dept.		{oddjob,chinet,att}!nucsrl!gore
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads