soscmd/soscmd-cleanup
The StarOpenSource Project e5cedf059c Optimize scripts
2024-03-15 02:17:42 +01:00

20 lines
538 B
Bash
Executable file

#!/bin/bash
echo ":: Cleaning up..."
export "diskusage_precleanup=$(df -h /;echo "==========";df -h /data)"
export "diskusage_precleanup_bytes=$(df /;echo "==========";df /data)"
soscmd-prune
soscmd-cache
soscmd-bleachbit
echo ":: Cleanup successful."
echo -e "\n#### before cleanup ####"
echo "$diskusage_precleanup"
echo "#### after cleanup ####"
df -h /
echo "=========="
df -h /data
echo -e "\n#### before cleanup (bytes) ####"
echo "$diskusage_precleanup_bytes"
echo "#### after cleanup (bytes) ####"
df /
echo "=========="
df /data