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