forked from obel1x/fedora-OEMDRV
14 lines
413 B
Bash
Executable File
14 lines
413 B
Bash
Executable File
#!/bin/sh
|
|
source ./setup_system.conf
|
|
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
|
|
#
|