Add findmnt(8) output in the backup

This commit is contained in:
Jérémy Lecour 2019-10-29 17:30:47 +01:00 committed by Jérémy Lecour
parent 4eb5e61ff0
commit da40afa99c

View file

@ -272,6 +272,11 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
{ /sbin/iptables -L -n -v; /sbin/iptables -t filter -L -n -v; } > ${LOCAL_BACKUP_DIR}/iptables.txt
fi
## Dump findmnt(8) output
FINDMNT_BIN=$(command -v findmnt)
if [ -x ${FINDMNT_BIN} ]; then
${FINDMNT_BIN} > ${LOCAL_BACKUP_DIR}/findmnt.txt
fi
else
## Dump network connections with netstat
netstat -finet -atn > ${LOCAL_BACKUP_DIR}/netstat.out