Skip to content

Instantly share code, notes, and snippets.

@florianbussmann
Created April 3, 2024 20:06
Show Gist options
  • Save florianbussmann/cf8ecefd4f991176d1e3bbdff0378178 to your computer and use it in GitHub Desktop.
Save florianbussmann/cf8ecefd4f991176d1e3bbdff0378178 to your computer and use it in GitHub Desktop.
Cleanup synoreport
# Keep only one monthly datapoint generated from Storage Analyzer
## dry run to show remaining folders
find ./20*-* -maxdepth 0 -type d -regex './20[0-9][0-9]-[0-9][0-9]-12_00-00-[0-9][0-9]' -print
## perform cleanup
find ./20*-* -maxdepth 0 -type d ! -regex './20[0-9][0-9]-[0-9][0-9]-12_00-00-[0-9][0-9]' -exec rm -rfv {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment