This little tool aim to get smalls one-time configurations for Proxmox Virtual environement and backup server hosts in no time.
It automatically will find if the host is a pve or a pbs host and setup accordingly.
You can watch a demonstration of the tool in this playlist
2023.11.24: Proxmox 8.1 - Emails Notifications - Proxmox VE now supports email configurations very well from the GUI, the toolbox wont get any update related to this function anymore.
wget -qO proxmox_toolbox.sh https://raw.githubusercontent.com/Tontonjo/proxmox_toolbox/main/proxmox_toolbox.sh && bash proxmox_toolbox.sh
The script will update your host and detect if the no-enterprise source is configured, if so, remove the subscription message.
To start an update only, without menu or prompt:
bash proxmox_toolbox.sh -u
Once the tool has been used to update host, you can execute this command to fully update your host - kind of an alias of bash proxmox_toolbox.sh -u
proxmox-update
To start a configuration backup only:
bash proxmox_toolbox.sh -b
If you enable fail2ban, i guess you know what you're doing, if you dont: here's some usefull informations and commands:
fail2ban-client status
fail2ban-client status $jailname
fail2ban-client set $jailname unbanip $ipaddress
/etc/ssh/sshd_config /root/.ssh/ /etc/fail2ban/ /etc/systemd/system/*.mount /etc/network/interfaces /etc/sysctl.conf /etc/resolv.conf /etc/hosts /etc/hostname /etc/cron* /etc/aliases /etc/snmp/ /etc/smartd.conf /usr/share/snmp/snmpd.conf /etc/postfix/ /etc/pve/ /etc/lvm/ /etc/modprobe.d/ /var/lib/pve-firewall/ /var/lib/pve-cluster/ /etc/vzdump.conf /etc/ksmtuned.conf /etc/proxmox-backup/
The script will put every folder listed in backup_content in a tar.gz archive.
Once the backup is done, a tar.gz archive is located at backupdir="/root/".
The script looks for tar.gz files located in backupdir="/root/" and will list all the available archives for you to choose one.
Warning: The restauration will overwrite any existing file with the one in archive
The restauration process will:
In case of need, here's how you can manually mount storages:
Mount configurations are located in /etc/systemd/system/mnt-datastore-$datastorename.mount
source /etc/systemd/system/mnt-datastore-$datastorename.mount
mkdir -p "$Where"
echo "$What $Where $Type $Options 0 2" >> /etc/fstab
mount -a
zpool import
zpool import -f $poolname
https://pve.proxmox.com/wiki/Fail2ban
https://github.com/inettgmbh/fail2ban-proxmox-backup-server
https://forum.proxmox.com/threads/how-do-i-set-the-mail-server-to-be-used-in-proxmox.23669/
https://linuxscriptshub.com/configure-smtp-with-gmail-using-postfix/
https://suoption_pickedpport.google.com/accounts/answer/6010255
https://www.howtoforge.com/community/threads/solved-problem-with-outgoing-mail-from-server.53920/
http://mhawthorne.net/posts/2011-postfix-configuring-gmail-as-relay/
https://docs.oracle.com/en/cloud/cloud-at-customer/occ-get-started/add-ssh-enabled-user.html
https://www.noobunbox.net/serveur/monitoring/configurer-snmp-v3-sous-debian
https://github.com/DeadlockState/Proxmox-prepare
https://blog.lbdg.me/proxmox-best-performance-disable-swappiness/
https://gist.github.com/mrpeardotnet/6bdc4b504f43ce57fa7eaee96d376edf
https://github.com/DerDanilo/proxmox-stuff/blob/master/prox_config_backup.sh
https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0
https://wiki.debian.org/SSDOptimization
https://www.linuxtricks.fr/wiki/proxmox-quelques-infos
https://bobcares.com/blog/fail2ban-unban-ip/
settings for zram -> https://pve.proxmox.com/wiki/Zram
PBS: add support for user creation and backup / restoration
user creation fro PBS when available
make things stupid-proof (deny characters when numbers expected and so on)
Tonton Jo - 2022