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
4ce9c573
Commit
4ce9c573
authored
18 years ago
by
micah
Browse files
Options
Downloads
Patches
Plain Diff
Added disk space report option (adam kosmin suggestion)
removed sys vserver not running noise report (anarcat suggestion)
parent
4ceb4f15
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ChangeLog
+4
-2
4 additions, 2 deletions
ChangeLog
etc/backupninja.conf.in
+4
-0
4 additions, 0 deletions
etc/backupninja.conf.in
handlers/sys
+0
-1
0 additions, 1 deletion
handlers/sys
src/backupninja.in
+12
-0
12 additions, 0 deletions
src/backupninja.in
with
20 additions
and
3 deletions
ChangeLog
+
4
−
2
View file @
4ce9c573
...
...
@@ -13,6 +13,7 @@ version 0.9.4 -- unreleased
. Changed order of -s to mail for compatibility
. fixed permission stat call so it uses the --format supported by
coreutils (Closes: #382747)
. Added disk space report option (thanks Adam Kosmin)
handler changes
Added tar handler:
. create tarballs
...
...
@@ -61,9 +62,10 @@ version 0.9.4 -- unreleased
0.4.3 will integrate them)
. Now forbid to (try to) include /.
sys:
. Many more system checks were added, thanks to Petr Klíma
. Many more system checks were added,
(
thanks to Petr Klíma
)
. Added warning if no devices were found (thanks Ranier Zocholl)
. Enhanced debian package selections to include purged packages (Thanks Tom Hoover)
. Enhanced debian package selections to include purged packages (thanks Tom Hoover)
. Removed warning about vserver not running (thanks anarcat)
ldap:
. Compress now happens in-line to save some disk space (Closes: #370778)
makecd:
...
...
This diff is collapsed.
Click to expand it.
etc/backupninja.conf.in
+
4
−
0
View file @
4ce9c573
...
...
@@ -25,6 +25,10 @@ reportsuccess = yes
# even if there was no error. (default = yes)
reportwarning = yes
# if set to 'yes', disk space usage will be included in
# the backup email report
reportspace = no
# set to the administration group that is allowed to
# read/write configuration files in /etc/backup.d
admingroup = root
...
...
This diff is collapsed.
Click to expand it.
handlers/sys
+
0
−
1
View file @
4ce9c573
...
...
@@ -93,7 +93,6 @@ if [ "$packages" == "yes" ]; then
nodpkg
=
"
$nodpkg
|
$vserver
"
fi
else
warning
"vserver
$vserver
is not running, skipping installed packages report."
nodpkg
=
"
$nodpkg
|
$vserver
"
fi
...
...
This diff is collapsed.
Click to expand it.
src/backupninja.in
+
12
−
0
View file @
4ce9c573
...
...
@@ -426,6 +426,7 @@ setfile $conffile
getconf configdirectory @CFGDIR@/backup.d
getconf scriptdirectory @datadir@
getconf reportemail
getconf reportspace
getconf reportsuccess
yes
getconf reportwarning
yes
getconf loglevel 3
...
...
@@ -526,6 +527,17 @@ if [ $doit == 1 ]; then
echo
${
messages
[
$i
]
}
done
echo
-e
"
$errormsg
"
if
[
"
$reportspace
"
==
"yes"
]
;
then
previous
=
""
for
i
in
$(
ls
"
$configdirectory
"
)
;
do
backuploc
=
$(
grep
^directory
"
$configdirectory
"
/
"
$i
"
|
awk
'{print $3}'
)
if
[
"
$backuploc
"
!=
"
$previous
"
]
;
then
mountdev
=
$(
mount |
grep
"
$backuploc
"
|
awk
'{print $1}'
)
df
-h
"
$mountdev
"
previous
=
"
$backuploc
"
fi
done
fi
}
| mail
-s
"backupninja:
$hostname
$subject
"
$reportemail
fi
...
...
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