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
cf1817d0
Commit
cf1817d0
authored
19 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
mysql and dup handlers: when using a vserver, check if it is running
parent
bd0b2eae
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
changelog
+2
-0
2 additions, 0 deletions
changelog
handlers/mysql
+6
-1
6 additions, 1 deletion
handlers/mysql
handlers/pgsql
+1
-0
1 addition, 0 deletions
handlers/pgsql
handlers/svn
+6
-1
6 additions, 1 deletion
handlers/svn
with
15 additions
and
2 deletions
changelog
+
2
−
0
View file @
cf1817d0
...
...
@@ -27,6 +27,8 @@ version 0.8 --
then nano, vim and vi, and aborts if none of these exists.
added helper for pgsql handler.
rdiff handler now does not require 'label'
changes to mysql and svn handlers' vservers support
these handlers now check if the source vserver is running
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/mysql
+
6
−
1
View file @
cf1817d0
...
...
@@ -39,11 +39,16 @@ then
fi
fi
#
Check to
make sure that the specified vserver exists
#
If needed,
make sure that the specified vserver exists
and is running.
if [ $usevserver ]
then
info "examining vserver '$vsname'"
# does it exist ?
vroot="$VROOTDIR/$vsname"
[ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
# is it running ?
running=`$VSERVERINFO $vsname RUNNING`
[ $running = 1 ] || fatal "vserver $vsname is not running."
fi
# create backup dirs, the vroot variable will be empty if no vsname was specified
...
...
This diff is collapsed.
Click to expand it.
handlers/pgsql
+
1
−
0
View file @
cf1817d0
#! /bin/sh
#
# PostgreSQL handler script for backupninja
#
...
...
This diff is collapsed.
Click to expand it.
handlers/svn
+
6
−
1
View file @
cf1817d0
...
...
@@ -23,11 +23,16 @@ then
fi
fi
#
Check to
make sure that the specified vserver exists
#
If needed,
make sure that the specified vserver exists
and is running.
if [ $usevserver ]
then
info "examining vserver '$vsname'"
# does it exist ?
vroot="$VROOTDIR/$vsname"
[ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
# is it running ?
running=`$VSERVERINFO $vsname RUNNING`
[ $running = 1 ] || fatal "vserver $vsname is not running."
fi
cd $vroot$src
...
...
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