Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dirvish-expire(8) [debian man page]

DIRVISH-EXPIRE(8)					      System Manager's Manual						 DIRVISH-EXPIRE(8)

NAME
dirvish-expire - delete expired dirvish images SYNOPSIS
dirvish-expire[OPTIONS] DESCRIPTION
Delete dirvish image trees or whole images that have expired. Each image summary file is checked for the Expire: field. If that field indicates the image has expired dirvish-expire will delete that image from the vault. By default all subdirectories of all banks will be treated as vaults and all directories therein except the one named dirvish will be checked for summary files. The removal of an image will have no effect on other images. Dirvish-expire will not delete an image unless it finds at least one image in that branch that has an intact image tree and Status: success in the summary that is not expired. OPTIONS
Each option on the command line may be specified any number of times. Those options that support lists in the config files will accumulate all of their arguments otherwise each specification will override the ones before. Each option may be unambiguously abbreviated. --time time_expression Execute as though time_expression were the current time. Time_expression is processed by Time::Parsedate(3pm) so relative time and date strings are permitted. See Time::Parsedate(3pm) for more details. --tree Only delete the image tree, leave in place the rest of the image directory with summary, log and any other image administrative files. --vault vault Restrict expiration to the specified vault. --no-run Don't actually do anything. Just display what would have happened. --quiet Run quietly, only report errors. Normally dirvish-expire will report the images deleted. EXIT CODES
To facilitate further automation and integration of dirvish-expire with other tools dirvish-expire provides rationalised exit codes. The exit codes are range based. While the code for a specific error may change from one version to another it will remain within the specified range. So don't test for specific exit codes but instead test for a range of values. To the degree possible higher value ranges indicate more severe errors. 0 success 200-219 An error was encountered in loading a configuration file. 220-254 An error was detected in the configuration. 255 Incorrect usage. FILES
/etc/dirvish/master.conf alternate master configuration file. /etc/dirvish.conf master configuration file. bank/vault/image/summary image creation summary. bank/vault/image/tree actual image of source directory tree. SEE ALSO
dirvish.conf(5) Time::ParseDate(3pm) BUGS
Dirvish-expire will walk the file hierarchy of all banks or the specified vault looking for summary files. Anything non-dirvish in there may cause excess file-walking. DIRVISH-EXPIRE(8)

Check Out this Related Man Page

CYR_EXPIRE(8)						      System Manager's Manual						     CYR_EXPIRE(8)

 *

NAME
cyr_expire - expire messages and duplicate delivery database entries SYNOPSIS
cyr_expire [ -C config-file ] [ -D delete-days ] -E expire-days [ -X expunge-days ] [ -p mailbox-prefix ] [ -v ] DESCRIPTION
Cyr_expire is used to expire messages and duplicate delivery database entries. Cyr_expire also cleanses mailboxes of partially expunged messages (when using the "delayed" expunge mode). The expiration of messages is controlled by the /vendor/cmu/cyrus-imapd/expire mailbox annotation which specifies the age (in days) of messages in the given mailbox that should be deleted. Any duplicate delivery database entries which correspond to the mailbox are also deleted at the same frequency. The value of the /vendor/cmu/cyrus-imapd/expire annotation is inherited by all children of the given mailbox, so an entire mailbox tree can be expired by seting a single annotation on the root of that tree. If a mailbox does not have a /vendor/cmu/cyrus-imapd/expire annotation set on it (or does not inherit one), then no messages are expired from the mailbox. Cyr_expire reads its configuration options out of the imapd.conf(5) file unless specified otherwise by -C. OPTIONS
-C config-file Read configuration options from config-file. -D delete-days Remove previously deleted mailboxes older than delete-days (when using the "delayed" delete mode). -E expire-days Prune the duplicate database of entries older than expire-days. This value is only used for entries which do not have a correspond- ing /vendor/cmu/cyrus-imapd/expire mailbox annotation. -X expunge-days Expunge previously deleted messages older than expunge-days (when using the "delayed" expunge mode). -x Do not expunge messages even if using delayed expunge mode (reduces the IO hit considerably, allowing you to run cyr_expire fre- quently to clean up the duplicate database without overloading your server) -p mailbox-prefix Only find mailboxes starting with this prefix. e.g. "user.justgotspammedlots" -v Enable verbose output. -a Skip the annotation lookup, so all /vendor/cmu/cyrus-imapd/expire annotations are ignored entirely. It behaves as if they were not set, so only expire-days is considered for all mailboxes. FILES
/etc/imapd.conf SEE ALSO
imapd.conf(5), master(8) CMU
Project Cyrus CYR_EXPIRE(8)
Man Page