HechtTurtle: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 10: | Zeile 10: | ||
restoretool -v3 init linuxserver | restoretool -v3 init linuxserver | ||
== Backup == | |||
cat <<EOS >/etc/apt/sources.list.d/backports.list | cat <<EOS >/etc/apt/sources.list.d/backports.list | ||
deb http://deb.debian.org/debian buster-backports main contrib | deb http://deb.debian.org/debian buster-backports main contrib | ||
Zeile 20: | Zeile 21: | ||
apt install linux-image-5.3.0-0.bpo.2-amd64 | apt install linux-image-5.3.0-0.bpo.2-amd64 | ||
</pre> | </pre> | ||
== Snapshots == | |||
<pre>FN=/etc/cron.daily/backup | <pre>FN=/etc/cron.daily/backup | ||
cat <<EOS >$FN | cat <<EOS >$FN | ||
Zeile 30: | Zeile 32: | ||
EOS | EOS | ||
chmod 755 $FN | chmod 755 $FN | ||
</pre> | |||
FN=/etc/cron.daily/snapshot | == Snapshots == | ||
<pre>FN=/etc/cron.daily/snapshot | |||
cat <<EOS >$FN | cat <<EOS >$FN | ||
#! /bin/bash | #! /bin/bash |
Version vom 19. Dezember 2019, 00:03 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 == Backup == 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
Snapshots
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
Snapshots
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