Tag Archives: bash

Backup Quiz

Was macht dieses Script? #!/bin/bash HOST=$(hostname) DATE=`date ‚+%Y-%m-%d’` PVS=`/sbin/pvs | grep sdb | awk ‚{print $6}‘ | awk -F „,“ ‚{print $1}’` LVS=`/sbin/lvs | grep solr | awk ‚{print $4}‘ | awk -F „,“ ‚{print $1}’` ORIG=/dev/vg0/solr SNAP=/dev/vg0/solr_snap MOUNT=/mnt/solr_snap TAR=solr_snap_$DATE.tar.gz echo „———- Start BU “ `date ‚+%F %k:%M’` if [ $PVS > $LVS ]; then… Read More »