.\" Man page generated from reStructuredText. . .TH BEPASTY-OBJECT 1 "" "" "" .SH NAME bepasty-object \- Manage objects stored by bepasty . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 bepasty\-object [\-h] [\-\-config CONFIG] {migrate,purge,consistency,info,set} ... NAME [NAME ...] .UNINDENT .UNINDENT .SH DESCRIPTION .sp bepasty\-object operates on objects stored in the bepasty storage. .sp All commands expect either a \fB\-\-config \fP argument or that the \fBBEPASTY_CONFIG\fP environment variable points to your configuration file. .SH OPTIONS .INDENT 0.0 .TP .B \-h\fP,\fB \-\-help show this help message and exit .TP .BI \-\-config \ CONFIG bepasty configuration file .UNINDENT .SH COMMANDS .SS migrate .sp migrate object to the current metadata schema, in case of a bebasty upgrade. .sp Run as: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C bepasty\-object migrate \(aq*\(aq .ft P .fi .UNINDENT .UNINDENT .sp Note: the ‘*’ needs to be quoted with single\-quotes so the shell does not expand it. it tells the command to operate on all names in the storage (you could also give some specific names instead of ‘*’). .SS purge .sp Purge objects from the database; multiple conditions are ANDed together. .INDENT 0.0 .TP .B \-D\fP,\fB \-\-dry\-run do not remove anything, just display what would happen .TP .BI \-A \ PURGE_AGE\fR,\fB \ \-\-age \ PURGE_AGE only remove if upload older than PURGE_AGE days .TP .BI \-I \ PURGE_INACTIVITY\fR,\fB \ \-\-inactivity \ PURGE_INACTIVITY only remove if latest download older than PURGE_INACTIVITY days .TP .BI \-S \ PURGE_SIZE\fR,\fB \ \-\-size \ PURGE_SIZE only remove if file size > PURGE_SIZE MiB .TP .BI \-T \ PURGE_TYPE\fR,\fB \ \-\-type \ PURGE_TYPE only remove if file mimetype starts with PURGE_TYPE .UNINDENT .SS consistency .sp Run consistency checks. .INDENT 0.0 .TP .B \-C\fP,\fB \-\-compute compute missing hashes and write into metadata .TP .B \-F\fP,\fB \-\-fix write computed hash/size into metadata .TP .B \-R\fP,\fB \-\-remove remove files with inconsistent hash/size .UNINDENT .SS info .sp Display information about objects. .SS set .sp Set flags on objects. .sp \-L, \-\-lock \-l, \-\-unlock \-C, \-\-incomplete \-c, \-\-complete .SH ENVIRONMENT .INDENT 0.0 .TP .B BEPASTY_CONFIG Absolute path to a bepasty configuration file .UNINDENT .SH SEE ALSO .INDENT 0.0 .IP \(bu 2 \fI\%Bepasty documentation\fP .UNINDENT .\" Generated by docutils manpage writer. .