[GH-ISSUE #842] Feature Request: SNAPSHOT_MAX_TOTAL_SIZE option to cap total snapshot size at some limit #522

Open
opened 2026-03-01 14:44:17 +03:00 by kerem · 2 comments
Owner

Originally created by @Valporaena on GitHub (Sep 7, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/842

Type

  • Propose a brand new feature

What is the problem that your feature request solves

Due to the recent wipe of my collection I would be archiving all of it again at some point, and this option, if it can be implemented, would be appreciated. Some of the pages I'm archiving turn out to be 100mb+, and I don't really need all of that.

Describe the ideal specific solution you'd want, and whether it fits into any broader scope of changes

'MEDIA_MAX_SIZE'-type option you can put in the .conf file would be nice.

How badly do you want this new feature?

  • It would be nice to have eventually
Originally created by @Valporaena on GitHub (Sep 7, 2021). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/842 <!-- Please fill out the following information, feel free to delete sections if they're not applicable or if long issue templates annoy you :) --> ## Type - [x] Propose a brand new feature ## What is the problem that your feature request solves <!-- e.g. I need to be able to archive spanish and french subtitle files from a particular <example.com> movie site that's going down soon. --> Due to the recent [wipe](https://github.com/ArchiveBox/ArchiveBox/discussions/839#discussion-3556425) of my collection I would be archiving all of it again at some point, and this option, if it can be implemented, would be appreciated. Some of the pages I'm archiving turn out to be 100mb+, and I don't really need all of that. ## Describe the ideal specific solution you'd want, and whether it fits into any broader scope of changes <!-- e.g. I specifically need a new archive method to look for multilingual subtitle files related to pages. The bigger picture solution is the ability for custom user scripts to be run in a puppeteer context during archiving. --> 'MEDIA_MAX_SIZE'-type option you can put in the .conf file would be nice. ## How badly do you want this new feature? - [x] It would be nice to have eventually
Author
Owner

@pirate commented on GitHub (Sep 8, 2021):

AFAIK there does not exist any option on wget to limit media size like YOUTUBEDL has. I'm not sure if this can be implemented easily.

<!-- gh-comment-id:915625423 --> @pirate commented on GitHub (Sep 8, 2021): AFAIK there does not exist any option on wget to limit media size like YOUTUBEDL has. I'm not sure if this can be implemented easily.
Author
Owner

@Valporaena commented on GitHub (Sep 9, 2021):

Oh, no problem. Maybe it would be easier to implement something like: if the total size of wget/singlefile snapshot exceeds user specified size, do not use these or delete the result? In my workflow I regularly find myself looking through the list of pages I just archived for big files, deleting them and archiving them again with wget/singlefile turned off. Web interface even shows you the total size of these big files in bold - so it seems like it's implied user would be looking for those anyway! I thing it would be cool to automate/eliminate this kind of task for the user.

<!-- gh-comment-id:916016027 --> @Valporaena commented on GitHub (Sep 9, 2021): Oh, no problem. Maybe it would be easier to implement something like: if the total size of wget/singlefile snapshot exceeds user specified size, do not use these or delete the result? In my workflow I regularly find myself looking through the list of pages I just archived for big files, deleting them and archiving them again with wget/singlefile turned off. Web interface even shows you the total size of these big files in bold - so it seems like it's implied user would be looking for those anyway! I thing it would be cool to automate/eliminate this kind of task for the user.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#522
No description provided.