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
2a911669
Commit
2a911669
authored
Oct 31, 2011
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use vzdump.cron instead of vzdump
parent
99118d54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Backup.pm
PVE/API2/Backup.pm
+9
-9
No files found.
PVE/API2/Backup.pm
View file @
2a911669
...
...
@@ -15,7 +15,7 @@ use PVE::VZDump;
use
base
qw(PVE::RESTHandler)
;
cfs_register_file
('
vzdump
',
cfs_register_file
('
vzdump
.cron
',
\&
parse_vzdump_cron_config
,
\&
write_vzdump_cron_config
);
...
...
@@ -218,7 +218,7 @@ __PACKAGE__->register_method({
my
$rpcenv
=
PVE::RPCEnvironment::
get
();
my
$user
=
$rpcenv
->
get_user
();
my
$data
=
cfs_read_file
('
vzdump
');
my
$data
=
cfs_read_file
('
vzdump
.cron
');
my
$res
=
$data
->
{
jobs
}
||
[]
;
...
...
@@ -255,7 +255,7 @@ __PACKAGE__->register_method({
my
$rpcenv
=
PVE::RPCEnvironment::
get
();
my
$user
=
$rpcenv
->
get_user
();
my
$data
=
cfs_read_file
('
vzdump
');
my
$data
=
cfs_read_file
('
vzdump
.cron
');
$param
->
{
dow
}
=
'
mon,tue,wed,thu,fri,sat,sun
'
if
!
defined
(
$param
->
{
dow
});
...
...
@@ -268,7 +268,7 @@ __PACKAGE__->register_method({
push
@
{
$data
->
{
jobs
}},
$param
;
cfs_write_file
('
vzdump
',
$data
);
cfs_write_file
('
vzdump
.cron
',
$data
);
return
undef
;
}});
...
...
@@ -297,7 +297,7 @@ __PACKAGE__->register_method({
my
$rpcenv
=
PVE::RPCEnvironment::
get
();
my
$user
=
$rpcenv
->
get_user
();
my
$data
=
cfs_read_file
('
vzdump
');
my
$data
=
cfs_read_file
('
vzdump
.cron
');
my
$jobs
=
$data
->
{
jobs
}
||
[]
;
...
...
@@ -332,7 +332,7 @@ __PACKAGE__->register_method({
my
$rpcenv
=
PVE::RPCEnvironment::
get
();
my
$user
=
$rpcenv
->
get_user
();
my
$data
=
cfs_read_file
('
vzdump
');
my
$data
=
cfs_read_file
('
vzdump
.cron
');
my
$jobs
=
$data
->
{
jobs
}
||
[]
;
my
$newjobs
=
[]
;
...
...
@@ -350,7 +350,7 @@ __PACKAGE__->register_method({
$data
->
{
jobs
}
=
$newjobs
;
cfs_write_file
('
vzdump
',
$data
);
cfs_write_file
('
vzdump
.cron
',
$data
);
return
undef
;
}});
...
...
@@ -394,7 +394,7 @@ __PACKAGE__->register_method({
my
$rpcenv
=
PVE::RPCEnvironment::
get
();
my
$user
=
$rpcenv
->
get_user
();
my
$data
=
cfs_read_file
('
vzdump
');
my
$data
=
cfs_read_file
('
vzdump
.cron
');
my
$jobs
=
$data
->
{
jobs
}
||
[]
;
...
...
@@ -435,7 +435,7 @@ __PACKAGE__->register_method({
raise_param_exc
({
vmid
=>
"
property is missing
"})
if
!
$job
->
{
all
}
&&
!
$job
->
{
vmid
};
cfs_write_file
('
vzdump
',
$data
);
cfs_write_file
('
vzdump
.cron
',
$data
);
return
undef
;
}
...
...
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