-
Notifications
You must be signed in to change notification settings - Fork 9
Disk usage limit
Alex edited this page Mar 22, 2021
·
3 revisions
READ CAREFULLY, OR YOU MIGHT LOOSE YOUR VIDEOS!
Let's say you store videos on a USB stick. As the stick fills up you want to delete old videos to make room for new ones. To keep 100 MB free, and automatically delete old videos when downloading, you'd specify:
python jwb-index --latest -d --free 100
Note that any MP4-files stored in the output directory risks getting deleted, as the script only looks at the file name and date when deciding what files to delete. So don't store anything there you don't want to loose.
There is a special flag that copies local videos to the data directory. This can be used together with automatic cleanup to essential merge two video directories, keeping only the newest files:
python jwb-index --free 500 --import /path/to/import/from /path/to/import/to