#!/bin/bash
source custom/paths.sh

setman-log info "Starting backup script;"

tar cz -C $backup_dir_path . | setman-backup "geminiCoreAppSettings" core.tar.gz
RET=$?
if [ $RET -ne 0 ]; then
    setman-log error "Failed to backup core settings; exit_code='$RET'"
fi

echo "1" | setman-backup "geminiCoreAppSettings" version
RET=$?
if [ $RET -ne 0 ]; then
    setman-log error "Failed to backup version; exit_code='$RET'"
fi

setman-log info "Finishing backup script;"
