HechtTurtle: Unterschied zwischen den Versionen

Aus Info-Theke
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 21: 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>
== Snapshots ==
== Backup ==
<pre>FN=/etc/cron.daily/backup
<pre>FN=/etc/cron.daily/backup
cat <<EOS >$FN
cat <<EOS >$FN

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

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

Backup

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