HechtTurtle: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 20: | Zeile 20: | ||
apt install linux-image-5.3.0-0.bpo.2-amd64 | apt install linux-image-5.3.0-0.bpo.2-amd64 | ||
</pre> | </pre> | ||
<pre> | <pre>FN=/etc/cron.daily/backup | ||
cat <<EOS >$FN | |||
#! /bin/bash | #! /bin/bash | ||
WAIT=600 | WAIT=600 | ||
Zeile 27: | Zeile 28: | ||
sleep $WAIT | sleep $WAIT | ||
PYTHONPATH=/usr/share/pyrshell /usr/local/bin/backup -q -r backup dayly | PYTHONPATH=/usr/share/pyrshell /usr/local/bin/backup -q -r backup dayly | ||
EOS | |||
chmod 755 $FN | |||
FN=/etc/cron.daily/snapshot | |||
cat <<EOS >$FN | |||
#! /bin/bash | |||
WAIT=60 | |||
test -n "$1" && WAIT=$1 | |||
date "+%Y.%m.%d-%H:%M:%S dayly snapshot wait: $WAIT" >>/var/log/local/snapshot.log | |||
sleep $WAIT | |||
/usr/local/bin/SnapshotSimple | |||
EOS | |||
chmod 755 $FN | |||
FN=/etc/cron.weekly/snapshot | |||
cat <<EOS >$FN | |||
#! /bin/bash | |||
WAIT=90 | |||
test -n "$1" && WAIT=$1 | |||
date "+%Y.%m.%d-%H:%M:%S weekly snapshot wait: $WAIT" >>/var/log/local/snapshot.log | |||
sleep $WAIT | |||
/usr/local/bin/SnapshotSimple weekly | |||
EOS | |||
chmod 755 $FN | |||
EOS | |||
</pre> | </pre> |
Version vom 18. Dezember 2019, 23:59 Uhr
Installation
su export PATH=/sbin:/usr/sbin:$PATH adduser hm apt update && apt install sudo wget wget -O /tmp/basic_install.sh https://public.hamatoma.de/basic_install.sh bash /tmp/basic_install.sh restoretool -v3 init linuxserver cat <<EOS >/etc/apt/sources.list.d/backports.list deb http://deb.debian.org/debian buster-backports main contrib deb-src http://deb.debian.org/debian buster-backports main contrib EOS apt update apt install thunderbird xsane thunderbird-l10n-de lightning-l10n-de caja apt install firmware-linux-free firmware-linux-free vlc menulibre hplip apt-cache search linux-image apt install linux-image-5.3.0-0.bpo.2-amd64
FN=/etc/cron.daily/backup cat <<EOS >$FN #! /bin/bash WAIT=600 test -n "$1" && WAIT=$1 date "+%Y.%m.%d-%H:%M:%S wait: $WAIT" >>/var/log/local/backup.log sleep $WAIT PYTHONPATH=/usr/share/pyrshell /usr/local/bin/backup -q -r backup dayly EOS chmod 755 $FN FN=/etc/cron.daily/snapshot cat <<EOS >$FN #! /bin/bash WAIT=60 test -n "$1" && WAIT=$1 date "+%Y.%m.%d-%H:%M:%S dayly snapshot wait: $WAIT" >>/var/log/local/snapshot.log sleep $WAIT /usr/local/bin/SnapshotSimple EOS chmod 755 $FN FN=/etc/cron.weekly/snapshot cat <<EOS >$FN #! /bin/bash WAIT=90 test -n "$1" && WAIT=$1 date "+%Y.%m.%d-%H:%M:%S weekly snapshot wait: $WAIT" >>/var/log/local/snapshot.log sleep $WAIT /usr/local/bin/SnapshotSimple weekly EOS chmod 755 $FN EOS