rucksack/README.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2023-10-29 23:10:11 +05:30
# rucksack [![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/) [![Built with Garnix](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fgarnix.io%2Fapi%2Fbadges%2Fmsfjarvis%2Frucksack%3Fbranch%3Dmain)](https://garnix.io)
2022-08-10 15:26:07 +05:30
2023-08-21 00:19:55 +05:30
rucksack is a simple file moving service that was built to solve the use case of watching a collection of directories and collecting all there files into a single target directory.
2022-08-10 15:26:07 +05:30
2023-08-21 00:19:55 +05:30
The idea for this was born from the frustration of playing games and wanting to share screenshots from them with my friends. Every game likes to hide its screenshots in a specific obscure path which made it harder to find them when I needed to. With rucksack they can all neatly stay in a single folder making discoverability significantly easier.
2022-08-10 15:26:07 +05:30
## Usage
### Configuration
An example config file can look something like this:
```toml
2023-08-20 21:24:06 +05:30
# ~/.config/rucksack.toml
2023-08-21 00:19:55 +05:30
name = "Screenshots" # Optional
2022-08-10 15:26:07 +05:30
sources = [
2023-08-21 00:19:55 +05:30
"/mnt/Games/Minecraft/screenshots",
"/c/Users/Harsh Shandilya/Pictures/God Of War"
2022-08-10 15:26:07 +05:30
]
target = "/mnt/mediahell/screenshots"
2023-08-21 00:19:55 +05:30
file_filter = "*.png"
2022-08-10 15:26:07 +05:30
```
2022-08-10 15:28:49 +05:30
### Running
2022-08-10 15:26:07 +05:30
2023-08-21 00:19:55 +05:30
Prebuilt binaries for macOS and Linux can be installed from [here](https://github.com/msfjarvis/rucksack/releases/latest).
`rucksack` uses [watchman](https://github.com/facebook/watchman) to power its file-watching capabilities. You can find the steps to install it for your own platform [here](https://facebook.github.io/watchman/docs/install).
To build from source, clone this repository and run `cargo run --release`. You will require a Rust installation.
`rucksack` is only tested against the latest stable release of Rust but a few versions older should also be fine.
2022-08-10 15:26:07 +05:30
## Licensing
Dual licensed under Apache 2.0 or MIT at your option.