I use Linux. I coded a screenshot program some time ago and now I have 9 GIG of screenshots, 60000 JPEGs, most of them look pretty similar, and I have 300 MB of disk space remaining.
What are some good ways to start to compress batches of them (or all of them) in the background given the limited space?
The problem with compressing the folder all at once is that I wouldn't have enough disk space for that. It seems the process needs to be broken down into chunks.
So maybe something like:
- Get a list of all the files
- Add a chunk of the files (say, 20) to a compressed archive.
- Once it is done and saved successfully, delete the chunk of files
- Process the next chunk.