#!/bin/sh source $(dirname "$0")/setup_system.inc.sh mkdir -p ${HOME}/temp cd ${SYSCONFIGPATH} tar --exclude='.*' -I 'zstd -9' -cf ${HOME}/temp/sys_config.tar.zst ${SYSCONFIGPATH} if [ $? -eq 0 ]; then echo "Archive of ${SYSCONFIGPATH} has been written to ~/temp/sys_config.tar.zst" else echo "Some Errors occured, quit" fi # TODO # - up file to NC - is only possible, when setup already has the webdav-token created #