autopostgresqlbackup
- ai autopostgresqlbackup
- dpkg -L autopostgresqlbackup
- mkdir /var/backups/autopostgresqlbackup
- vim /etc/default/autopostgresqlbackup
- /usr/sbin/autopostgresqlbackup
- l /var/backups/autopostgresqlbackup/*/*
PeerTube
- https://docs.joinpeertube.org/maintain/migration
- vim $(which autopostgresqlbackup) +361 #367
- su $SU_USERNAME -l -c "pg_dump -Fc $PGHOST $OPT $db -f $2"
- pg_dump -Fc --username=$USERNAME $PGHOST $OPT $db -f $2
PeerTube Migration btrfs Incus
Diese Dokumentation beschreibt das final empfohlene Setup für die PeerTube-Instanz auf at1 in Verbindung mit:
- einem btrfs‑RAID1 unter
/mnt/raid1, - klar getrennten btrfs‑Subvolumes,
- einem Incus‑Container (
peertubeoderpeertube4), - sauberem Host→Container‑Mounting via Incus‑Disk‑Device,
- korrekt eingerichtetem User‑Namespace‑Mapping.
Das Ziel ist ein robustes, snapshot‑fähiges, sauber getrenntes System, das Migrationen und Backups extrem erleichtert.
redis
WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
peertube install
- https://github.com/Chocobozzz/PeerTube/issues/1079#issuecomment-872256813
- curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
- ai unzip postgresql nginx gnupg2 ffmpeg redis nodejs
- npm install -g yarn
- node -v; yarn -v
- https://docs.joinpeertube.org/install/any-os#installation
- sudo -u peertube npm install --produ
nginx peertube
Modify your Nginx configuration to trust the proxy headers. In your server block, add:
/etc/nginx/sites-available/peertube
real_ip_header X-Forwarded-For;
set_real_ip_from 0.0.0.0/0;unattended-upgrades
ai unattended-upgrades apt-utils
/etc/apt/apt.conf.d/50unattended-upgrades
- "site=download.opensuse.org";
- "site=deb.nodesource.com";
- "site=download.jitsi.org";
- "Docker:${distro_codename}";
nginx peertube proxy
server {
server_name peertube.TLD;
access_log off;
open_log_file_cache max=1000 inactive=20s valid=1m min_uses=2;
include /etc/nginx/snippets/letsencrypt-acme-challenge.conf;