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
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
lyz
backupninja
Commits
4e0c31d0
Commit
4e0c31d0
authored
19 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
Fixed/improved a few bits of rdiff, dup and sys handlers.
parent
f22dbec1
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
changelog
+7
-0
7 additions, 0 deletions
changelog
handlers/dup
+1
-1
1 addition, 1 deletion
handlers/dup
handlers/rdiff
+1
-1
1 addition, 1 deletion
handlers/rdiff
handlers/sys
+7
-7
7 additions, 7 deletions
handlers/sys
with
16 additions
and
9 deletions
changelog
+
7
−
0
View file @
4e0c31d0
...
...
@@ -9,6 +9,13 @@ version XX -- ...
documented .disabled method.
corrected VROOTDIR default value.
added ninjahelper to the install instructions.
improved rdiff, dup and sys handlers' vservers support
prevent vserver-debiantools' $VROOTDIR/ARCHIVES directory
to be seen as a vserver
changes to sys handler
make use of configurable $VSERVERINFO instead of hard-coded vserver-info.
fixed dpkg existence test inside vserver.
fixed $nodpkg use.
version 0.7 -- July 26 2005
added ninjahelper: a dialog based wizard for creating backupninja configs.
...
...
This diff is collapsed.
Click to expand it.
handlers/dup
+
1
−
1
View file @
4e0c31d0
...
...
@@ -39,7 +39,7 @@ if [ "$vservers" == "yes" ]; then
[ -d "$VROOTDIR" ] || fatal "vservers enabled, but $VROOTDIR does not exist!"
if [ "$vsnames" == "all" ]; then
vsnames=""
for vserver in `ls $VROOTDIR | grep -v lost+found
| grep -v
ARCHIVES`; do
for vserver in `ls $VROOTDIR | grep
-E
-v
"
lost+found
|
ARCHIVES
"
`; do
vsnames="$vserver $vsnames"
done
else
...
...
This diff is collapsed.
Click to expand it.
handlers/rdiff
+
1
−
1
View file @
4e0c31d0
...
...
@@ -118,7 +118,7 @@ done
# vsinclude
if [ $usevserver ]
then
for vserver in `ls $VROOTDIR
|
grep -v lost+found`
for vserver in `ls $VROOTDIR
|
grep
-E
-v
"
lost+found
|ARCHIVES"
`
do
for vi in $vsinclude
do
...
...
This diff is collapsed.
Click to expand it.
handlers/sys
+
7
−
7
View file @
4e0c31d0
...
...
@@ -46,20 +46,20 @@ fi
if [ "$packages" == "yes" ]; then
if [ $usevserver ]
then
nodpkg="lost+found"
nodpkg="lost+found
|ARCHIVES
"
info "vserver root directory set to: $VROOTDIR"
for vserver in `ls $VROOTDIR |grep -v $nodpkg`
for vserver in `ls $VROOTDIR |
grep
-E
-v $nodpkg`
do
info "examining vserver: $vserver"
running=`
vserver-info
$vserver RUNNING`
running=`
$VSERVERINFO
$vserver RUNNING`
if [ $running = 1 ]; then
if [ ! -x "`$VSERVER $vserver exec which dpkg`" ]; then
if [ ! -x "
$VROOTDIR/$vserver
`$VSERVER $vserver exec which dpkg`" ]; then
warning "can't find dpkg in vserver $vserver, skipping installed packages report."
nodpkg="$nodpkg
$vserver"
nodpkg="$nodpkg
|
$vserver"
fi
else
warning "vserver $vserver is not running, skipping installed packages report."
nodpkg="$nodpkg
$vserver"
nodpkg="$nodpkg
|
$vserver"
fi
done
...
...
@@ -97,7 +97,7 @@ fi
if [ $usevserver ]
then
for vserver in `ls $VROOTDIR | grep -v $nodpkg
| grep -v lost+found
`
for vserver in `ls $VROOTDIR | grep
-E
-v $nodpkg`
do
debug "$VSERVER $vserver exec dpkg --get-selections > $VROOTDIR/$vserver$packagesfile"
$VSERVER $vserver exec dpkg --get-selections > $VROOTDIR/$vserver$packagesfile
...
...
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