Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
d47e6e92
Commit
d47e6e92
authored
Dec 13, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support new qemu vma backup files
bump version to 2.3-1
parent
5706408b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
11 deletions
+20
-11
VZDump.pm
PVE/VZDump.pm
+8
-5
vzdump
bin/vzdump
+3
-3
changelog.Debian
debian/changelog.Debian
+6
-0
defines.mk
defines.mk
+3
-3
No files found.
PVE/VZDump.pm
View file @
d47e6e92
...
@@ -672,7 +672,7 @@ sub get_backup_file_list {
...
@@ -672,7 +672,7 @@ sub get_backup_file_list {
my
$bklist
=
[]
;
my
$bklist
=
[]
;
foreach
my
$fn
(
<
$dir
/
$
{
bkname
}
-*>
)
{
foreach
my
$fn
(
<
$dir
/
$
{
bkname
}
-*>
)
{
next
if
$exclude_fn
&&
$fn
eq
$exclude_fn
;
next
if
$exclude_fn
&&
$fn
eq
$exclude_fn
;
if
(
$fn
=~
m!/(${bkname}-(\d{4})_(\d{2})_(\d{2})-(\d{2})_(\d{2})_(\d{2})\.(tgz|(
tar
(\.(gz|lzo))?)))$!
)
{
if
(
$fn
=~
m!/(${bkname}-(\d{4})_(\d{2})_(\d{2})-(\d{2})_(\d{2})_(\d{2})\.(tgz|(
(tar|vma)
(\.(gz|lzo))?)))$!
)
{
$fn
=
"
$dir
/$1
";
# untaint
$fn
=
"
$dir
/$1
";
# untaint
my
$t
=
timelocal
(
$7
,
$6
,
$5
,
$4
,
$3
-
1
,
$2
-
1900
);
my
$t
=
timelocal
(
$7
,
$6
,
$5
,
$4
,
$3
-
1
,
$2
-
1900
);
push
@$bklist
,
[
$fn
,
$t
];
push
@$bklist
,
[
$fn
,
$t
];
...
@@ -722,7 +722,7 @@ sub exec_backup_task {
...
@@ -722,7 +722,7 @@ sub exec_backup_task {
my
$logfile
=
$task
->
{
logfile
}
=
"
$opts
->{dumpdir}/
$basename
.log
";
my
$logfile
=
$task
->
{
logfile
}
=
"
$opts
->{dumpdir}/
$basename
.log
";
my
$ext
=
'
.tar
';
my
$ext
=
$vmtype
eq
'
qemu
'
?
'
.vma
'
:
'
.tar
';
my
(
$comp
,
$comp_ext
)
=
compressor_info
(
$opts
->
{
compress
});
my
(
$comp
,
$comp_ext
)
=
compressor_info
(
$opts
->
{
compress
});
if
(
$comp
&&
$comp_ext
)
{
if
(
$comp
&&
$comp_ext
)
{
$ext
.=
"
.
${comp_ext}
";
$ext
.=
"
.
${comp_ext}
";
...
@@ -916,7 +916,7 @@ sub exec_backup_task {
...
@@ -916,7 +916,7 @@ sub exec_backup_task {
debugmsg
('
info
',
"
delete old backup '
$d
->[0]'
",
$logfd
);
debugmsg
('
info
',
"
delete old backup '
$d
->[0]'
",
$logfd
);
unlink
$d
->
[
0
];
unlink
$d
->
[
0
];
my
$logfn
=
$d
->
[
0
];
my
$logfn
=
$d
->
[
0
];
$logfn
=~
s/\.(tgz|(
tar
(\.(gz|lzo))?))$/\.log/
;
$logfn
=~
s/\.(tgz|(
(tar|vma)
(\.(gz|lzo))?))$/\.log/
;
unlink
$logfn
;
unlink
$logfn
;
}
}
}
}
...
@@ -946,8 +946,11 @@ sub exec_backup_task {
...
@@ -946,8 +946,11 @@ sub exec_backup_task {
debugmsg
('
info
',
"
resume vm
",
$logfd
);
debugmsg
('
info
',
"
resume vm
",
$logfd
);
$plugin
->
resume_vm
(
$task
,
$vmid
);
$plugin
->
resume_vm
(
$task
,
$vmid
);
}
else
{
}
else
{
debugmsg
('
info
',
"
restarting vm
",
$logfd
);
my
$running
=
$plugin
->
vm_status
(
$vmid
);
$plugin
->
start_vm
(
$task
,
$vmid
);
if
(
!
$running
)
{
debugmsg
('
info
',
"
restarting vm
",
$logfd
);
$plugin
->
start_vm
(
$task
,
$vmid
);
}
}
}
};
};
my
$err
=
$@
;
my
$err
=
$@
;
...
...
bin/vzdump
View file @
d47e6e92
...
@@ -52,7 +52,7 @@ vzdump - backup utility for virtual machine
...
@@ -52,7 +52,7 @@ vzdump - backup utility for virtual machine
=head1 DESCRIPTION
=head1 DESCRIPTION
vzdump is an utility to make consistent snapshots of running virtual
vzdump is an utility to make consistent snapshots of running virtual
machines (VMs). It basically creates a
tar
archive of the VM private area,
machines (VMs). It basically creates a
n
archive of the VM private area,
which also includes the VM configuration files. vzdump currently
which also includes the VM configuration files. vzdump currently
supports OpenVZ and QemuServer VMs.
supports OpenVZ and QemuServer VMs.
...
@@ -96,7 +96,7 @@ number of backups to keep.
...
@@ -96,7 +96,7 @@ number of backups to keep.
=head1 RESTORE
=head1 RESTORE
The resulting
tar
files can be restored with the following programs.
The resulting
archive
files can be restored with the following programs.
=over 1
=over 1
...
@@ -182,7 +182,7 @@ Restore an OpenVZ machine to VM 600
...
@@ -182,7 +182,7 @@ Restore an OpenVZ machine to VM 600
Restore an Qemu/KVM machine to VM 601
Restore an Qemu/KVM machine to VM 601
# qmrestore /mnt/backup/vzdump-qemu-888.
tar
601
# qmrestore /mnt/backup/vzdump-qemu-888.
vma
601
Clone an existing container 101 to container 300 using pipes
Clone an existing container 101 to container 300 using pipes
...
...
debian/changelog.Debian
View file @
d47e6e92
pve-manager (2.3-1) unstable; urgency=low
* support new qemu vma backup files
-- Proxmox Support Team <support@proxmox.com> Thu, 13 Dec 2012 07:27:32 +0100
pve-manager (2.2-32) unstable; urgency=low
pve-manager (2.2-32) unstable; urgency=low
* add new cpu types: Haswell and Opteron_G5
* add new cpu types: Haswell and Opteron_G5
...
...
defines.mk
View file @
d47e6e92
RELEASE=2.
2
RELEASE=2.
3
VERSION=2.
2
VERSION=2.
3
PACKAGE=pve-manager
PACKAGE=pve-manager
PACKAGERELEASE=
32
PACKAGERELEASE=
1
BINDIR=${DESTDIR}/usr/bin
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5
PERLLIBDIR=${DESTDIR}/usr/share/perl5
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment