Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamd3vil/archiverd
A daemon for archiving old files whenever a new file is created.
https://github.com/iamd3vil/archiverd
archiverd rotation rust
Last synced: 9 days ago
JSON representation
A daemon for archiving old files whenever a new file is created.
- Host: GitHub
- URL: https://github.com/iamd3vil/archiverd
- Owner: iamd3vil
- License: mit
- Created: 2023-11-24T16:17:45.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-03-05T03:52:45.000Z (8 months ago)
- Last Synced: 2024-04-19T20:58:31.402Z (7 months ago)
- Topics: archiverd, rotation, rust
- Language: Rust
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# archiverd
`archiverd` is a lightweight daemon designed to monitor and archive files in a specified directory. It's particularly useful in scenarios where files are periodically created or updated, and there's a need to archive older versions automatically. This tool is ideal for managing log files, packet captures, and similar data.
## Usecase
Consider a folder where new files are regularly added or updated. For instance:
```
$ ls test/
testfile1.txt
```With `archiverd`, when `testfile2.txt` is created, the older file (`testfile1.txt`) is automatically archived. . `archiverd` can be especially beneficial for maintaining orderly log files or packet captures.
This is the folder structure after `testfile2.txt` file is created:
```
$ ls test/
testfile1.txt.tar.gz
testfile2.ttt
```## Usage
```
Usage: archiverd [OPTIONS] --directoryOptions:
-d, --directory Specify the directory to monitor.
-m, --max-files Maximum number of archived files to keep.
-e, --exclude Define patterns to exclude files from archiving.
-h, --help Display this help message.
-V, --version Show the version of the archiverd.
```