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
- Host: GitHub
- URL: https://github.com/dnutiu/rotire
- Owner: dnutiu
- Created: 2025-07-12T08:12:06.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-07-12T08:13:18.000Z (11 months ago)
- Last Synced: 2025-07-13T17:54:47.047Z (11 months ago)
- Topics: cli, files, rotate, rust, tool
- Language: Rust
- Homepage: https://forge.nuculabs.de/dnutiu/rotire
- Size: 1.73 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Rotire

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
```