sort output of checkbkp
This commit is contained in:
parent
ca1cbb6b5f
commit
484b08ea80
1 changed files with 1 additions and 1 deletions
|
@ -451,7 +451,7 @@ checkbkp () {
|
|||
local SSH="/usr/bin/ssh"
|
||||
local CMD="$SSH -T backup.vpn"
|
||||
$CMD /bin/bash << EOF
|
||||
sudo find /srv/nfs/backup -mindepth 1 -maxdepth 1|grep -v -e "git$\|git-backup-repos"|while read i;do printf "%-30s%s\\n" "\$i" \$(ls \$i|tail -n1);done
|
||||
sudo find /srv/nfs/backup -mindepth 1 -maxdepth 1|grep -v -e "git$\|git-backup-repos"|while read i;do printf "%-30s%s\\n" "\$i" \$(ls \$i|tail -n1);done|sort -k 2.1 -r
|
||||
EOF
|
||||
#which pdsh 1>/dev/null 2>&1 && pdsh -g hetzner-servers sudo systemctl status backup.service
|
||||
which pdsh 1>/dev/null 2>&1 && pdsh -g vpn sudo systemctl status backup.service
|
||||
|
|
Loading…
Reference in a new issue