16 lines
490 B
Bash
Executable file
16 lines
490 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 -h /data)"
|
|
soscmd-prune
|
|
soscmd-cache
|
|
soscmd-bleachbit
|
|
echo ":: Cleanup successful."
|
|
echo -e "\n:: Disk usage before cleanup:"
|
|
echo "$diskusage_precleanup"
|
|
echo ":: after cleanup:"
|
|
df -h /data
|
|
echo -e "\n:: And here in measured in bytes, before cleanup:"
|
|
echo "$diskusage_precleanup_bytes"
|
|
echo ":: and after:"
|
|
df /data
|