https://github.com/tyru/goriki
delete old files one by one until total file size becomes lower than specified file size
https://github.com/tyru/goriki
Last synced: about 1 month ago
JSON representation
delete old files one by one until total file size becomes lower than specified file size
- Host: GitHub
- URL: https://github.com/tyru/goriki
- Owner: tyru
- Created: 2013-06-30T15:10:49.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-27T09:24:52.000Z (almost 13 years ago)
- Last Synced: 2025-03-04T03:22:36.282Z (over 1 year ago)
- Language: Go
- Size: 133 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lazy Tool for Round-Robin Life (case 1: Me)
`Dropbox/pdf` folder is copied to NAS folder
so there is no matter to delete `Dropbox/pdf` folder.
Dropbox/pdf --> NAS
and I want to delete old(\*1) files not to concern disk (and Dropbox) resource.
(like Mac's TimeMachine backup management. I like the way for disk resource management)
Dropbox/pdf (Maximum size = 2GB)
`goriki` is the tool for it.
It deletes old files until total file size becomes lower than specified file size.
You can create a task to invoke `goriki` from Windows TaskScheduler like the following:
C:\path\to\goriki.exe --folder C:\Users\user\Dropbox\pdf --max-size 2G --verbose --log-file C:\Users\user\Dropbox\goriki.log --ignore .organizer (\*2)
See `goriki.exe --help` for more detailed help of each option.
\*1: `old` is determined by modification time.
\*2: `--ignore .organizer`: for ignoring `.organizer` folder created by scanner [ScanSnap iX500](http://scansnap.fujitsu.com/jp/product/ix500/) (Japanese).
# Environment
I use `goriki` only on Windows.
but this might work on Unix like environment because this is very simple tool.
# Another Round-Robin Tool
Sometimes I forget erase all files in Trash of Desktop.
[NonRccDel](http://homepage2.nifty.com/nonnon/) (Japanese) can erase old files in Trash
which are older than specified day(s) by command-line.
I created a task for also NonRccDel.