root / bin / disk-usage.sh @ 2b468206
1 | d52a5b2f | jenselme | #!/bin/sh |
---|---|---|---|
2 | |||
3 | 06e9d071 | Assos Assos | . /home/assos/bin/scripts-config.sh |
4 | d52a5b2f | jenselme | |
5 | 2c35046c | Julien Enselme | df -h |
6 | echo -e "\n" |
||
7 | d52a5b2f | jenselme | |
8 | echo "Assos:" |
||
9 | 3e9236bd | Julien Enselme | du -hcs "${dir_multi_assos}" | grep total |
10 | d52a5b2f | jenselme | echo -e "\n" |
11 | |||
12 | echo "D7:" |
||
13 | 3e9236bd | Julien Enselme | cd "${d7_dir_sites}" |
14 | d52a5b2f | jenselme | du -h -d 1 |
15 | echo -e "\n" |
||
16 | |||
17 | echo "Logs:" |
||
18 | 3e9236bd | Julien Enselme | du -hcs "${dir_log}" | grep total |
19 | d52a5b2f | jenselme | echo -e "\n" |
20 | |||
21 | echo "Backups:" |
||
22 | 3e9236bd | Julien Enselme | cd "${dir_backup}" |
23 | d52a5b2f | jenselme | du -h -d 2 |