soscmd/soscmd-cleanup

17 lines
422 B
Text
Raw Normal View History

2023-06-03 11:28:50 +02:00
#!/bin/bash
echo ":: Cleaning up..."
export "diskusage_precleanup=$(df -h /)"
export "diskusage_precleanup_bytes=$(df /)"
soscmd-prune
soscmd-cache
soscmd-bleachbit
echo ":: Cleanup successful."
echo -e "\n:: Disk usage before cleanup:"
echo "$diskusage_precleanup"
echo ":: after cleanup:"
df -h /
echo -e "\n:: And here in measured in bytes, before cleanup:"
echo "$diskusage_precleanup_bytes"
echo ":: and after:"
df /