.SH SYNOPSIS
.B vac
[
-.B -mqsv
+.B -mqstv
] [
.B -a
.I vacfile
.B -s
Print out various statistics on standard error.
.TP
+.B -t
+Exclude files and directories with the temporary flag set.
+.TP
.B -v
Produce more verbose output on standard error, including the name of the files added to the archive
and the vac archives that are expanded and merged.
void
usage(void)
{
- fprint(2, "vac [-imqsv] [-a archive.vac] [-b bsize] [-d old.vac] [-e exclude] [-f new.vac] [-i name] [-h host] [-x excludefile] file...\n");
+ fprint(2, "vac [-imqstv] [-a archive.vac] [-b bsize] [-d old.vac] [-e exclude] [-f new.vac] [-i name] [-h host] [-x excludefile] file...\n");
threadexitsall("usage");
}
int qdiff;
int merge;
int verbose;
+int notmp;
char *host;
VtConn *z;
VacFs *fs;
case 's':
printstats++;
break;
+ case 't':
+ notmp++;
+ break;
case 'v':
verbose++;
break;
VacFile *f, *fdiff;
VtEntry e;
- if(!includefile(name)){
+ if(!includefile(name) || (notmp && (d->qid.type&QTTMP))) {
warn("excluding %s%s", name, (d->mode&DMDIR) ? "/" : "");
return;
}