Skip to content

Backup Command keeps failing #995

@kbgvirus

Description

@kbgvirus

Hi, I need some help as why when i run a backup on my arkserver it keeps failing.

if [ $? != 0 ]; then
    fn_print_ok_nl "Backup created: ${backupname}.tar.gz is $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}') size"
    fn_script_log_pass "Backup created: ${backupdir}/${backupname}.tar.gz is $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}') size"
else
    fn_print_error_nl "Backup failed: ${backupname}.tar.gz"
    fn_script_log_error "Backup failed: ${backupname}.tar.gz"
fi
sleep 1
echo ""
core_exit.sh

I changed the bash file to read


if [ $? == 0 ]; then
    fn_print_ok_nl "Backup created: ${backupname}.tar.gz is $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}') size"
    fn_script_log_pass "Backup created: ${backupdir}/${backupname}.tar.gz is $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}') size"
else
    fn_print_error_nl "Backup failed: ${backupname}.tar.gz"
    fn_script_log_error "Backup failed: ${backupname}.tar.gz"
fi
sleep 1
echo ""
core_exit.sh

and after that change it passes.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions