.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "BACKUP_SETEXP 8" .TH BACKUP_SETEXP 8 2024-03-20 OpenAFS "AFS Command Reference" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME backup_setexp \- Sets the expiration date for existing dump levels. .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBbackup setexp\fR \fB\-dump\fR\ <\fIdump\ level\ name\fR>+ [\fB\-expires\fR\ <\fIexpiration\ date\fR>+] [\fB\-localauth\fR] [\fB\-cell\fR\ <\fIcell\ name\fR>] [\fB\-help\fR] .PP \&\fBbackup se\fR \fB\-d\fR\ <\fIdump\ level\ name\fR>+ [\fB\-e\fR\ <\fIexpiration\ date\fR>+] [\fB\-l\fR] [\fB\-c\fR\ <\fIcell\ name\fR>] [\fB\-h\fR] .SH DESCRIPTION .IX Header "DESCRIPTION" The \fBbackup setexp\fR command sets or changes the expiration date associated with each specified dump level, which must already exist in the dump hierarchy. .PP Use the \fB\-expires\fR argument to associate an expiration date with each dump level. When the Backup System subsequently creates a dump at the dump level, it uses the specified value to derive the dump's expiration date, which it records on the label of the tape (or backup data file). The Backup System refuses to overwrite a tape until after the latest expiration date of any dump that the tape contains, unless the \fBbackup labeltape\fR command is used to relabel the tape. If a dump level does not have an expiration date, the Backup System treats dumps created at the level as expired as soon as it creates them. .PP (Note that the Backup System does not automatically remove a dump's record from the Backup Database when the dump reaches its expiration date, but only if the tape that contains the dump is recycled or relabeled. To remove expired and other obsolete dump records, use the \fBbackup deletedump\fR command.) .PP Define either an absolute or relative expiration date: .IP \(bu 4 An absolute expiration date defines the month/day/year (and, optionally, hour and minutes) at which a dump expires. If the expiration date predates the dump creation time, the Backup System immediately treats the dump as expired. .IP \(bu 4 A relative date defines the number of years, months, or days (or a combination of the three) after the dump's creation that it expires. When the Backup System creates a dump at the dump level, it calculates an actual expiration date by adding the relative date to the start time of the dump operation. .PP If the command is used to change an existing expiration date associated with a dump level, the new date applies only to dumps created after the change. Existing dumps retain the expiration date assigned at the time they were created. .SH OPTIONS .IX Header "OPTIONS" .IP "\fB\-dump\fR <\fIdump level name\fR>+" 4 .IX Item "-dump +" Specifies the full pathname of each dump level to assign the expiration date specified by the \fB\-expires\fR argument. .IP "\fB\-expires\fR <\fIexpiration date\fR>+" 4 .IX Item "-expires +" Defines the absolute or relative expiration date to associate with each dump level named by the \fB\-dump\fR argument. Absolute expiration dates have the following format: .Sp .Vb 1 \& [at] {NEVER | /
/ [:] } .Ve .Sp where the optional word at is followed either by the string \f(CW\*(C`NEVER\*(C'\fR, which indicates that dumps created at the dump level never expire, or by a date value with a required portion ( for month,
for day, and for year) and an optional portion ( for hours and for minutes). .Sp Omit the : portion to use the default of midnight (00:00 hours), or provide a value in 24\-hour format (for example, \f(CW\*(C`20:30\*(C'\fR is 8:30 p.m.). Valid values for the year range from \f(CW1970\fR to \f(CW2037\fR; higher values are not valid because the latest possible date in the standard UNIX representation is in February 2038. The command interpreter automatically reduces later dates to the maximum value. .Sp Relative expiration dates have the following format: .Sp .Vb 1 \& [in] [y] [m] [d] .Ve .Sp where the optional word in is followed by at least one of a number of years (maximum \f(CW9999\fR) followed by the letter \f(CW\*(C`y\*(C'\fR, a number of months (maximum \f(CW12\fR) followed by the letter \f(CW\*(C`m\*(C'\fR, or a number of days (maximum \&\f(CW31\fR) followed by the letter \f(CW\*(C`d\*(C'\fR. If providing more than one of the three, list them in the indicated order. If the date that results from adding the relative expiration value to a dump's creation time is later than the latest possible date in the UNIX time representation, the Backup System automatically reduces it to that date. .IP \fB\-localauth\fR 4 .IX Item "-localauth" Constructs a server ticket using a key from the local \&\fI/etc/openafs/server/KeyFile\fR file. The \fBbackup\fR command interpreter presents it to the Backup Server, Volume Server and VL Server during mutual authentication. Do not combine this flag with the \fB\-cell\fR argument. For more details, see \fBbackup\fR\|(8). .IP "\fB\-cell\fR <\fIcell name\fR>" 4 .IX Item "-cell " Names the cell in which to run the command. Do not combine this argument with the \fB\-localauth\fR flag. For more details, see \fBbackup\fR\|(8). .IP \fB\-help\fR 4 .IX Item "-help" Prints the online help for this command. All other valid options are ignored. .SH EXAMPLES .IX Header "EXAMPLES" The following example associates an absolute expiration date of 10:00 p.m. on 31 December 1999 with the dump level \f(CW\*(C`/1998/december\*(C'\fR: .PP .Vb 1 \& % backup setexp \-dump /1998/december \-expires at 12/31/1999 22:00 .Ve .PP The following example associates a relative expiration date of 7 days with the two dump levels \f(CW\*(C`/monthly/week1\*(C'\fR and \f(CW\*(C`/monthly/week2\*(C'\fR: .PP .Vb 1 \& % backup setexp \-dump /monthly/week1 /monthly/week \-expires 7d .Ve .SH "PRIVILEGE REQUIRED" .IX Header "PRIVILEGE REQUIRED" The issuer must be listed in the \fI/etc/openafs/server/UserList\fR file on every machine where the Backup Server is running, or must be logged onto a server machine as the local superuser \f(CW\*(C`root\*(C'\fR if the \fB\-localauth\fR flag is included. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBbackup\fR\|(8), \&\fBbackup_adddump\fR\|(8), \&\fBbackup_deldump\fR\|(8), \&\fBbackup_listdumps\fR\|(8) .SH COPYRIGHT .IX Header "COPYRIGHT" IBM Corporation 2000. All Rights Reserved. .PP This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.