HechtTurtle: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 9: | Zeile 9: | ||
bash /tmp/basic_install.sh | bash /tmp/basic_install.sh | ||
restoretool -v3 init linuxserver | restoretool -v3 init linuxserver | ||
apt install thunderbird | |||
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 | |||
</pre> | |||
== Backup == | |||
<pre>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 | |||
</pre> | |||
== Snapshots == | |||
<pre>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 | |||
</pre> | </pre> |
Aktuelle Version vom 19. Dezember 2019, 00:05 Uhr
Installation[Bearbeiten]
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[Bearbeiten]
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[Bearbeiten]
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