Created
April 3, 2024 20:06
-
-
Save florianbussmann/cf8ecefd4f991176d1e3bbdff0378178 to your computer and use it in GitHub Desktop.
Cleanup synoreport
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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