Tontonjo / proxmox_toolbox

A toolbox to get the firsts configurations of Proxmox VE / BS done in no time
https://www.youtube.com/c/tontonjo
GNU General Public License v3.0
271 stars 40 forks source link

Backup Config via Argument #17

Closed mac-linux-free closed 1 year ago

mac-linux-free commented 1 year ago

Hello,

what argument do I have to use to Backup Configuration?

Thank you,

Tontonjo commented 1 year ago

Hello,

what argument do I have to use to Backup Configuration?

Thank you,

Hi, absolutely none :)

Were you expecting something special?

mac-linux-free commented 1 year ago

Oh...I want to put a config-backup to crontab. So I think I need an argument like proxmox_toolbox.sh -b

Tontonjo commented 1 year ago

Oh...I want to put a config-backup to crontab. So I think I need an argument like proxmox_toolbox.sh -b

i can do that.

Tontonjo commented 1 year ago

Oh...I want to put a config-backup to crontab. So I think I need an argument like proxmox_toolbox.sh -b

Done in: https://github.com/Tontonjo/proxmox_toolbox/commit/d72a3c4c34c77218efd26c4f688ee1e64b118db5

mac-linux-free commented 11 months ago

Hello again, sorry to open this up. Could you add an argument to define the backup-versions like proxmox_toolbox -b -v 10 ? I want to cron this and rsync away from host.

Thank you.

Tontonjo commented 11 months ago

Hello again, sorry to open this up. Could you add an argument to define the backup-versions like proxmox_toolbox -b -v 10 ? I want to cron this and rsync away from host.

Thank you.

Hey!

What do you mean by "backup version" and why is it related to cron and rsync?

The backup already has a timestamp in the name and if you're worried about taking away the latest version i feel it can be very easilly achived with your rsync script.

mac-linux-free commented 11 months ago

If I run it daily on 5 cluster nodes, the directory would grow, and I need only the last 10 versions per node.

Tontonjo commented 11 months ago

If I run it daily on 5 cluster nodes, the directory would grow, and I need only the last 10 versions per node.

Just script a purge in that folder along the execution of the backup :)