Ethernet and Coffee

Using whisper-resize.py in combination with linux find to batch resize many WSP files

Change to the top-level directory where your WSP files are located. Recursively modify the storage scheme for all files to “60s:60d 5m:90d 30m:120d 1440m:360d” with the command below:

find . -type f -name "*.wsp" -exec whisper-resize.py {} 60s:60d 5m:90d 30m:120d 1440m:360d \;

Note that these commands are all on a single line and definitely need to end with the backslash semicolon characters.

Same modification but don’t make a backup:

find . -type f -name "*.wsp" -exec whisper-resize.py --nobackup {} 60s:60d 5m:90d 30m:120d \;

Use –aggregate flag to make values fit the new archive better, but this takes more CPU and memory:

find . -type f -name "*.wsp" -exec whisper-resize.py --aggregate --nobackup {} 60s:60d 5m:90d 30m:120d \;