vzdump with datestamps [message #34522] |
Thu, 15 January 2009 05:24  |
vader897
Messages: 2 Registered: January 2009
|
Junior Member |
|
|
I am trying to edit vzdump so that it will append the date and maybe time to the filename of the outputted tar file.
for example vzdump-VEID-%Y-%m-%d-%H-%M-%s.tar.gz
It seems fairly straight foward
On a side note, I think a nifty upgrade for vzdump would be for it to allow users to append a label. For example, vzdump 101 -L my_special_backup would spit out a file called vzdump-101-my_special_backup.tar.gz
Dont get sidetracked by my feature request, the real question is how can I edit the vzdump code jus to get a datestamp for now. The line that needs to be changed is 1287.
my $basename = "vzdump-${vpsid}";
basically, i have never coded in perl before so I have just been guessing at code to no avail. Can anyone lend me a hand?
Any ideas?
|
|
|