-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cleanup utility to get diskspace back
- Loading branch information
Daniel Tingelöf
committed
Oct 18, 2023
1 parent
9d45336
commit c2733b3
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
find ~/Downloads -type f -size +5M -delete | ||
go clean -modcache | ||
docker image prune -a --filter "until=24h" | ||
docker container prune --filter "until=24h" | ||
docker volume prune --filter "label!=keep" | ||
docker network prune --filter "until=24h" | ||
|
||
rm -rf ~/.config/google-chrome/Profile\ 1/Service\ Worker/CacheStorage/* | ||
rm -rf ~/.config/Microsoft/Microsoft Teams/Service Worker/CacheStorage/* | ||
|
||
|
||
find ~/ -type f -name "defensics-report.zip" -exec rm {}\; | ||
find ~/ -type f -name "defensics_scan_report_wcdbcd_6_x.zip" -exec rm {}\; | ||
find ~/ -type f -name "Defensics\ Scan\ Report\ for\ WCDBCD\ 6.x.zip" -exec rm {}\; | ||
|