Does it work with Proxmox version 3.2-4?
Hello DerDanilo,
Does it work with Proxmox version 3.2-4?
tar -cvf "$_filename1" /etc/.
tar -cvf "$_filename2" /var/lib/pve-cluster/.
tar -cvf "$_filename3" /root/.
Won't this cause errors in the script or with tar?you can omit the .
Won't this cause errors in the script or with tar?
Hi,
In my own opinion you do not need to re-invent the weel . If you need backup, you do not need to create a new tool for this. Use a tool that fit your needs and that has a good history (at least 3-4 years ).
A good candidate is rsnaphot and I can say that is a very good tool (it was save me in any situation when I need it , I used for many years on any server that I need to administer )
Lets integrate it into my script. I also have some changes to submit.
ls -1tr *.tar.gz | head -n -5 | xargs -d'\n' rm -f --
12 * * * * /bin/echo | /prox_config_backup.sh
TERM environment variable not set.
Cleaning up
# cat /etc/cron.d/pveconfigbackup
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
SHELL=/bin/bash
TERM=xterm
MAILTO="email@example.com"
BACKUP_DIR=/var/backups/pvebackup/config
# m h dom mon dow user command
# Script erwartet Enter beim Ausfuehren
45 20 * * 6 root echo | /root/proxmox_config_backup.sh >> /var/log/pve-config-backup.log
BACKUP_DIR=/mnt/qbak
40 * * * * /bin/echo | /prox_config_backup.sh