An open API service indexing awesome lists of open source software.

https://github.com/dnutiu/rotire

Rotire is a small tool for automatically rotating files by either deleting or archiving rotated files
https://github.com/dnutiu/rotire

cli files rotate rust tool

Last synced: 11 months ago
JSON representation

Rotire is a small tool for automatically rotating files by either deleting or archiving rotated files

Awesome Lists containing this project

README

          

# Rotire

![Rotire Logo](./rotire.png)

Rotire is a small tool that allows you to rotate files.

You can either archive the files or delete them.

# Options

Rotire has the following options:

```
Simple program to rotate files

Usage: rotire [OPTIONS] --directory [ACTION]

Arguments:
[ACTION] Select the action rotire should run. [default: archive] [possible values: archive, delete]

Options:
-d, --directory Path of the directory on which rotire should run
-k, --keep-n How many items to keep, defaults to 4 [default: 4]
-p, --prefix-filter Only apply action on the file names matching the prefix
-s, --suffix-filter Only apply action on the file names matching the suffix
-h, --help Print help
-V, --version Print version
```

The following command archives all the files in the `not_in_train` directory and keeps the most recent four
files unarchived.

```angular2html
rotire --directory /home/denis/Pictures/not_in_train
```