2023-06-03 11:28:50 +02:00
|
|
|
#!/bin/bash
|
|
|
|
echo ":: Cleaning up..."
|
2023-11-06 01:37:14 +01:00
|
|
|
export "diskusage_precleanup=$(df -h /;echo "==========";df -h /data)"
|
2024-03-15 02:17:42 +01:00
|
|
|
export "diskusage_precleanup_bytes=$(df /;echo "==========";df /data)"
|
2023-06-03 11:28:50 +02:00
|
|
|
soscmd-prune
|
|
|
|
soscmd-cache
|
|
|
|
soscmd-bleachbit
|
|
|
|
echo ":: Cleanup successful."
|
2024-03-15 02:17:42 +01:00
|
|
|
echo -e "\n#### before cleanup ####"
|
2023-06-03 11:28:50 +02:00
|
|
|
echo "$diskusage_precleanup"
|
2024-03-15 02:17:42 +01:00
|
|
|
echo "#### after cleanup ####"
|
|
|
|
df -h /
|
|
|
|
echo "=========="
|
2023-09-13 03:17:37 +02:00
|
|
|
df -h /data
|
2024-03-15 02:17:42 +01:00
|
|
|
echo -e "\n#### before cleanup (bytes) ####"
|
2023-06-03 11:28:50 +02:00
|
|
|
echo "$diskusage_precleanup_bytes"
|
2024-03-15 02:17:42 +01:00
|
|
|
echo "#### after cleanup (bytes) ####"
|
|
|
|
df /
|
|
|
|
echo "=========="
|
2023-09-13 03:17:37 +02:00
|
|
|
df /data
|