@Bristow-0 A while back, I was trying to find an answer to your question, but I couldn’t find anything, so I just wrote it myself. It’s not perfect, but this could be a good starting point.
I have it set up on a Proxmox LXC container running Ubuntu 22.04 and it’s running on a cron job weekly. If you want to go this route, you just have to set up a few things on the container first.
- Make sure you can send emails from the container. I use
msmtp
, but you can use something else that you prefer, just make sure to change the command in the script.
- Make sure you can SSH into your FOG server from the container with an SSH key so that you don’t have to deal with username/password.
- Not extremely necessary but recommended. Add a mount point, to the container, of a separate storage location to save all the data to.
- In the script, I have it set to
/mnt/FOGBackups
Make sure that you read through the script and change the FOG information.
For some reason the forum doesn’t show the bash script correctly, so I am adding a link to a public gist with the code: https://gist.github.com/rluzuriaga/a2cd00cbff9a5cc70d0fb93afdd15566
Hope this helps!