OpenVZ Forum


Home » General » Support » vzdump with datestamps
vzdump with datestamps [message #34522] Thu, 15 January 2009 05:24 Go to previous message
vader897 is currently offline  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?
 
Read Message
Read Message
Previous Topic: vzctl chkpnt - strange error with sit0
Next Topic: IO Performance on OpenVZ
Goto Forum:
  


Current Time: Sun Aug 24 22:32:47 GMT 2025

Total time taken to generate the page: 0.13547 seconds