Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Liberate
backupninja
Commits
22bea56d
Commit
22bea56d
authored
19 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
rdiff: start to take advantage of new lib/vserver functionality
parent
299a5307
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
handlers/rdiff
+6
-11
6 additions, 11 deletions
handlers/rdiff
with
6 additions
and
11 deletions
handlers/rdiff
+
6
−
11
View file @
22bea56d
...
@@ -93,15 +93,10 @@ check_consistency "destination" "$type" "$user" "$host"
...
@@ -93,15 +93,10 @@ check_consistency "destination" "$type" "$user" "$host"
### CHECK CONFIG ###
### CHECK CONFIG ###
# See if vservers are configured
# See if vservers are configured
if
[
"
$vservers
"
=
"yes"
]
local
usevserver
=
no
then
if
[
$vservers_are_available
=
yes
]
;
then
if
[
!
-d
$VROOTDIR
]
info
"vserver method enabled"
then
usevserver
=
yes
fatal
"vservers enabled, but
$VROOTDIR
does not exist!"
else
info
"vserver method enabled"
usevserver
=
1
fi
fi
fi
# check the connection at the source and destination
# check the connection at the source and destination
...
@@ -119,7 +114,7 @@ fi
...
@@ -119,7 +114,7 @@ fi
# source specific checks
# source specific checks
[
"
$include
"
!=
""
-o
"
$vsinclude
"
!=
""
]
||
fatal
"No source includes specified"
[
"
$include
"
!=
""
-o
"
$vsinclude
"
!=
""
]
||
fatal
"No source includes specified"
#TODO should I test for vsinclude if usevservers=
1
?
#TODO should I test for vsinclude if usevservers=
yes
?
case
$sourcetype
in
case
$sourcetype
in
remote
)
execstr_sourcepart
=
"
$sourceuser
@
$sourcehost
::/"
;;
remote
)
execstr_sourcepart
=
"
$sourceuser
@
$sourcehost
::/"
;;
local
)
execstr_sourcepart
=
"/"
;;
local
)
execstr_sourcepart
=
"/"
;;
...
@@ -177,7 +172,7 @@ for i in $include; do
...
@@ -177,7 +172,7 @@ for i in $include; do
done
done
# vsinclude
# vsinclude
if
[
$usevserver
]
;
then
if
[
$usevserver
=
yes
]
;
then
for
vserver
in
`
ls
$VROOTDIR
|grep
-v
lost+found
`
;
do
for
vserver
in
`
ls
$VROOTDIR
|grep
-v
lost+found
`
;
do
for
vi
in
$vsinclude
;
do
for
vi
in
$vsinclude
;
do
str
=
"
${
vi
//__star__/*
}
"
str
=
"
${
vi
//__star__/*
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment