restore_ramdisk "$RRDLOG"
fi
else
- #if backup directory contains data, the amount of memory was possibly increased, we can copy the files to Disk
- if [ $(find "$RRDLOG.bak" | wc -l) -ne 1 ]; then
- cp -pR $RRDLOG.bak/* $RRDLOG/
- rm -rf $RRDLOG.bak/*
- fi
+ restore_ramdisk "$RRDLOG"
fi
#
# Move /var/spool/cron to ramdisk and make a symlink
$0 restore
fi
else
- #if backup directory contains data, the amount of memory was possibly increased, we can copy the files to Disk
- if [ $(find "$VNSTATLOG.bak" | wc -l) -ne 1 ]; then
- cp -pR $VNSTATLOG.bak/* $VNSTATLOG/
- rm -rf $VNSTATLOG.bak/*
- fi
+ restore_ramdisk "$VNSTATLOG"
fi
;;
stop)