20 lines
538 B
Bash
Executable file
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
|