klein@mechp.UUCP (Greg Klein) (05/23/89)
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 =========================================================================
jewett@hpl-opus.HP.COM (Bob Jewett) (05/25/89)
> 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
scott@grlab.UUCP (Scott Blachowicz) (05/25/89)
/ 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
schwager@m.cs.uiuc.edu (05/25/89)
> /* ---------- "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
gore@eecs.nwu.edu (Jacob Gore) (05/26/89)
/ 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