Thanks guletz. Wasn't aware of rsnapshot. I'll be looking into it.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 )
I considered that first but my script is written in BASH so running them back to back was easier as a stop gap.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="firstname.lastname@example.org" 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