PVE Manager: vzdump param maxfiles missing

Morten

Member
Mar 5, 2009
32
0
6
Copenhagen, Denmark
Hi,

I need more backup files than just the last one. Vzdump has a --maxfiles parameter that I'd like to be able to set from the PVE Manager. A backup job with this parameter set in the /etc/cron.d/vzdump file (which I know I'm not supposed to fiddle around with) doesn't even show in the PVE Manager.

Should I hack it myself and maybe post a patch or can I get somebody with more Perl experience than me (just about anybody) to make this change, please.
 
Hi,

I need more backup files than just the last one. Vzdump has a --maxfiles parameter that I'd like to be able to set from the PVE Manager. A backup job with this parameter set in the /etc/cron.d/vzdump file (which I know I'm not supposed to fiddle around with) doesn't even show in the PVE Manager.

Should I hack it myself and maybe post a patch or can I get somebody with more Perl experience than me (just about anybody) to make this change, please.

just create the following:
Code:
nano /etc/vzdump.conf
and specify the parameters (see man vzdump).
Code:
CONFIGURATION
       Global configuration is stored in /etc/vzdump.conf.

        tmpdir: DIR
        dumpdir: DIR
        storage: STORAGE_ID
        mode: snapshot|suspend|stop
        bwlimit: KBPS
        lockwait: MINUTES
        stopwait: MINUTES
        size: MB
        maxfiles: N
        script: FILENAME
 
Wauv, that sounds surprisingly easy!

I created the /etc/vzdump.conf with just one line:
maxfiles: 8
And expect the vzdump to read this parameter along with the ones set in the /etc/cron.d/vzdump. Here's one of the lines from that:
00 03 * * * root vzdump --quiet --node 5 --snapshot --compress --storage backup6 --all
This should result in 8 versions of the backup files, right?

It's not because I don't want or know how to test it, but the "man vzdump" doesn't reveal if the params in /etc/vzdump.conf takes precedence over the ones in the /etc/cron.d/vzdump file or the other way around (I guess it's the latter)
 
Last edited: