new_configs

This commit is contained in:
simono41 2018-07-08 23:23:07 +02:00
parent c0411a1682
commit e33a1f0338
4 changed files with 6 additions and 4 deletions

BIN
.Conky.tar.pxz Normal file

Binary file not shown.

BIN
.config.tar.pxz Normal file

Binary file not shown.

View file

@ -734,7 +734,7 @@ if [ "$version" != "lite" ] && [ "$skip" != "skip" ]; then
systemctl enable x11vnc.service systemctl enable x11vnc.service
# .Conky # .Conky
tar -vxJf /opt/${repo}/.Conky.tar.xz -C /opt/ compress restore /opt/${repo}/.Conky.tar.pxz /opt/
chmod 755 -Rv /opt/.Conky/ chmod 755 -Rv /opt/.Conky/
touch /root/notes.txt touch /root/notes.txt
@ -782,7 +782,7 @@ fi
rm -Rv /root/.config rm -Rv /root/.config
fi fi
mkdir -p /root/.config mkdir -p /root/.config
tar -vxJf /opt/${repo}/.config.tar.xz -C /root/.config/ compress restore /opt/${repo}/.config.tar.pxz /root/.config/
gnomeconfig gnomeconfig
copyconfig copyconfig
#fi #fi

View file

@ -21,9 +21,11 @@ if [ "make" == "$1" ]; then
rm ${archiv}.tar rm ${archiv}.tar
elif [ "restore" == "$1" ]; then elif [ "restore" == "$1" ]; then
[[ -z "${3}" ]] && ort="."
pixz -d ${archiv} ${archiv/.pxz*} pixz -d ${archiv} ${archiv/.pxz*}
tar -xf ${archiv/.pxz*} tar -xf ${archiv/.pxz*} -C ${ort}
# säuberung # säuberung
rm ${archiv/.pxz*} rm ${archiv/.pxz*}
@ -31,7 +33,7 @@ else
echo "tar.pxz compress-script" echo "tar.pxz compress-script"
echo "./compress.sh make/restore archivname input/output" echo "./compress.sh make/restore archivname input/output"
echo "./compress.sh make archivname daten" echo "./compress.sh make archivname daten"
echo "./compress.sh restore archivname" echo "./compress.sh restore archivname ort"
echo "or use" echo "or use"
echo "tar -Ipixz -cf output.tpxz dir # Make tar use pixz automatically" echo "tar -Ipixz -cf output.tpxz dir # Make tar use pixz automatically"
fi fi