Browse Source

corrected messages

pull/820/merge
Daniel Gibbs 9 years ago
parent
commit
03169f1fb0
  1. 6
      lgsm/functions/command_backup.sh

6
lgsm/functions/command_backup.sh

@ -27,7 +27,7 @@ echo ""
check_status.sh check_status.sh
if [ "${status}" != "0" ]; then if [ "${status}" != "0" ]; then
echo "" echo ""
fn_printwarningnl "${servicename} is currently running." fn_print_warning_nl "${servicename} is currently running."
sleep 1 sleep 1
while true; do while true; do
read -p "Stop ${servicename} while running the backup? [y/N]" yn read -p "Stop ${servicename} while running the backup? [y/N]" yn
@ -39,13 +39,13 @@ if [ "${status}" != "0" ]; then
done done
fi fi
fn_scriptlog "Started backup" fn_scriptlog "Started backup"
fn_printdots "Backup in progress, please wait..." fn_print_dots "Backup in progress, please wait..."
sleep 2 sleep 2
if [ ! -d "${backupdir}" ]; then if [ ! -d "${backupdir}" ]; then
mkdir "${backupdir}" mkdir "${backupdir}"
fi fi
tar -czf "${backupdir}/${backupname}.tar.gz" -C "${rootdir}" --exclude "backups" ./* tar -czf "${backupdir}/${backupname}.tar.gz" -C "${rootdir}" --exclude "backups" ./*
fn_printoknl "Backup created: ${backupname}.tar.gz is $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}') size" fn_print_ok_nl "Backup created: ${backupname}.tar.gz is $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}') size"
fn_scriptlog "Complete, Backup created: ${backupdir}/${backupname}.tar.gz is $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}') size" fn_scriptlog "Complete, Backup created: ${backupdir}/${backupname}.tar.gz is $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}') size"
sleep 1 sleep 1
echo "" echo ""
Loading…
Cancel
Save