This is an old revision of the document!


Betriebssystem und Pakete

OS: debian-bookworm

  • Minimum-Installation
  • Alle Updates
apt update && apt upgrade
apt install \
  vim \
  openssh-server \
  dropbear-initramfs \
  command-not-found \
  apache2-utils \
  mc \
  rcs \
  rsync \
  swaks \
  ufw \
  inetutils-tools \
  net-tools \
  fuse \
  at \
  samba \
  nullmailer \
  mailutils \
  hdparm \
  sudo \
  golang \
  ethtool \
  hwinfo \
  hdparm \
  pv \
  gdu \
  python3-dateutil \
  lsb-release \
  gnupg2 \
  apt-transport-https \
  ca-certificates \
  curl \
  software-properties-common \
  mariadb-client \
  lshw

Swapspace

sudo fallocate -l 16G /swapfile
ls -lh /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
sudo echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
cat /proc/sys/vm/swappiness
sudo sysctl vm.swappiness=10
cat /proc/sys/vm/vfs_cache_pressure
sudo sysctl vm.vfs_cache_pressure=50

In /etc/sysctl.conf folgende Zeilen anfügen:

vm.swappiness=10
vm.vfs_cache_pressure=50

Restic

wget https://github.com/restic/restic/releases/download/v0.16.2/restic_0.16.2_linux_amd64.bz2
bzip2 -d restic_0.16.2_linux_amd64.bz2
mv restic_0.16.2_linux_amd64 /usr/local/bin/restic
chmod +x /usr/local/bin/restic
restic

Erzeugt eine Ausgabe beginnend mit

restic is a backup program which allows saving multiple revisions of files and
directories in an encrypted repository stored on different backends.

The full documentation can be found at https://restic.readthedocs.io/ .

Pfad kann unterschiedlich sein!

restic -p /root/resticpw -r /backupdisk/restic-repo mount /resticrestore
  • computer/debian/hermes_v3.1700943320.txt.gz
  • Last modified: 2023/11/25 20:15
  • by spring