This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
## so we're taking the Proxmox VE Host Backup script, former ttech :: https://community-scripts.github.io/ProxmoxVE/scripts?id=host-backup | |
## aka :: bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/host-backup.sh)" | |
## the only line we need is 65 or | |
## tar -czf "$BACKUP_PATH$BACKUP_FILE-$(date +%Y_%m_%d).tar.gz" --absolute-names "${selected_directories[@]}" | |
## we're going to improve this using zstd | |
## ssh into NAS and then SSH into Node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## from https://backports.debian.org/Instructions/ | |
## and Andrea Borman 's https://www.youtube.com/@AndreaBorman | |
## youtube video :: How To Update With Debian Backports On Debian Bookworm. | |
## https://www.youtube.com/watch?v=XDF2CB-q60M | |
echo 'deb http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware' >> /etc/apt/sources.list | |
apt update ; apt upgrade -y -t bookworm-backports ; apt autoremove -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## LINKS | |
## https://pbs.proxmox.com/docs/backup-client.html# | |
## https://ed.llo:8007/#DataStore-pbs:content | |
proxmox-backup-client backup \ | |
--repository ed:pbs \ | |
--ns hosts/skylake1 \ | |
root.pxar:/root \ | |
etc.pxar:/etc --exclude /etc/pve |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
## apt-cache | |
echo 'Acquire::http::Proxy "http://192.168.10.14:3142";' | sudo tee /etc/apt/apt.conf.d/00aptproxy | |
## etckeeper | |
sudo apt update ; sudo apt install -y etckeeper | |
### zram | |
## zram-tools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
## Watch This Space || full write-up, accompanying explainer doc coming soon | |
### zram kernel optimizations | |
## https://github.com/garyexplains/examples/blob/master/how_to_enable_ZRAM_Raspberry_Pi.md#kernel-parameters-to-make-better-use-of-zram | |
cat << 'EOF' | sudo tee /etc/sysctl.d/99-vm-zram-parameters.conf | |
vm.vfs_cache_pressure=500 | |
vm.swappiness=100 | |
vm.dirty_background_ratio=1 |
OlderNewer