Update bkpsys-2fsarchive.sh

This commit is contained in:
kneutron 2024-04-30 19:52:11 -06:00 committed by GitHub
parent 11c97848a5
commit 9934211d40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,10 @@ PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/gam
# TODO BOOJUM STAFF - adjust for client retention needs!
keepdays=31
# Vital dependency
[ $(dpkg -l |grep -c fsarchiver -gt 0 ] || apt install -y fsarchiver
[ $(dpkg -l |grep -c lzop -gt 0 ] || apt install -y lzop
rootdev=`df / |grep /dev |awk '{print $1}'`
rootpedit=`echo ${rootdev##*/}` # strip off beginning, and last slash: sde1