https://github.com/doughtnerd/safe-remove
rm-like cli tool that saves deleted files. Built in Rust
https://github.com/doughtnerd/safe-remove
Last synced: about 1 year ago
JSON representation
rm-like cli tool that saves deleted files. Built in Rust
- Host: GitHub
- URL: https://github.com/doughtnerd/safe-remove
- Owner: doughtnerd
- Created: 2024-05-06T05:17:23.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-06T05:26:55.000Z (about 2 years ago)
- Last Synced: 2025-02-14T03:41:20.363Z (over 1 year ago)
- Language: Rust
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Safe Remove
## Description
CLI tool similar to linux/ubuntu native `rm` command but backs up the files that are removed. These files can then be restored to their old location.
## Example Usage
### Remove files
```bash
safe-remove remove test.ts ./**/junkfile.txt
```
### Restore files
```bash
safe-remove restore test.ts nested/dir/junkfile.txt
```
## Why?
I wrote this to get a better feel for coding in Rust and figured this would be a fairly straightforward app.
I'm well aware you could easily use some subset of other commands or tools (mv, cp then rm, etc) to accomplish the same thing.
## Notes
The tool is not complete and bound to be a little buggy, I'll be working to correct bugs and make the tool a little better as I get more used to doing things in Rust.