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
907f7d44
Commit
907f7d44
authored
20 years ago
by
elijah
Browse files
Options
Downloads
Patches
Plain Diff
fixed bug with __star__ and sys handler.
well, not really, but i worked around a bug that i don't understand.
parent
2064c738
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
backupninja
+0
-1
0 additions, 1 deletion
backupninja
changelog
+5
-2
5 additions, 2 deletions
changelog
etc/backup.d/example.sys
+4
-3
4 additions, 3 deletions
etc/backup.d/example.sys
handlers/sys
+3
-2
3 additions, 2 deletions
handlers/sys
with
12 additions
and
8 deletions
backupninja
+
0
−
1
View file @
907f7d44
...
...
@@ -143,7 +143,6 @@ function getconf() {
# replace * with %, so that it is not globbed.
ret
=
"
${
ret
//\\*/__star__
}
"
ret
=
"
${
ret
//\*/__star__
}
"
# this is weird, but single quotes are needed to
# allow for returned values with spaces. $ret is still expanded
...
...
This diff is collapsed.
Click to expand it.
changelog
+
5
−
2
View file @
907f7d44
version 0.4.3 --
Jan 20 2005
version 0.4.3 --
????
results of handlers are now read line by line.
changes to rdiff handler: added "options", and "keep" is not necessarily days now.
changes to rdiff handler: added "options", and "keep" is
not necessarily days now (ie, it will pass straight through to
rdiff-backup if the keep has a unit on it, otherwise it adds the 'D').
added dup handler (still pretty beta)
added maildir handler (very specialized handler)
added --run option (runs the specified action file)
improved sys handler, now uses hwinfo
added PATH to cron.d file, which fixes file not found errors.
version 0.4.2 -- Jan 6 2005
fixed bug which caused a report email to be sent even if no actions were run.
...
...
This diff is collapsed.
Click to expand it.
etc/backup.d/example.sys
+
4
−
3
View file @
907f7d44
...
...
@@ -2,6 +2,8 @@
# this config file will save various reports of vital system information.
# by default, all the reports are enabled and are saved in /var/backups.
#
# requires dpkg, sfdisk, and hwinfo
#
# (1) a list of all the packages installed and removed.
# this file can be used to restore the state of installed packages
# by running "dpkg --set-selections < dpkg-selections.txt
...
...
@@ -14,8 +16,7 @@
# (MAKE SURE YOU PARTITION THE CORRECT DISK!!!)
#
# (3) hardware information.
# a simple report is generated of the kernel modules, the devices,
# and the model of the hardware which 'discover' is able to detect.
# detailed information on most important aspects of the hardware.
#
# here are the defaults, commented out:
...
...
@@ -24,7 +25,7 @@
# packagesfile = /var/backups/dpkg-selections.txt
# partitions = yes
# partitionsfile = /var/backups/partitions.
*
.txt
# partitionsfile = /var/backups/partitions.
__star__
.txt
# hardware = yes
# hardwarefile = /var/backups/hardware.txt
...
...
This diff is collapsed.
Click to expand it.
handlers/sys
+
3
−
2
View file @
907f7d44
...
...
@@ -14,14 +14,14 @@
# (MAKE SURE YOU PARTITION THE CORRECT DISK!!!)
#
# (3) hardware information.
# write to a text file the important things which hwinfo can
discover
.
# write to a text file the important things which hwinfo can
gleen
.
#
getconf packages yes
getconf packagesfile /var/backups/dpkg-selections.txt
getconf partitions yes
getconf partitionsfile
'
/var/backups/partitions.
*
.txt
'
getconf partitionsfile /var/backups/partitions.
__star__
.txt
getconf hardware yes
getconf hardwarefile /var/backups/hardware.txt
...
...
@@ -91,6 +91,7 @@ if [ "$hardware" == "yes" ]; then
fi
touch $hardwarefile
echo -e "\n\n====================== summary ======================\n" >> $hardwarefile
debug "hwinfo --short --cpu --network --disk --pci >> $hardwarefile"
hwinfo --short --cpu --network --disk --pci >> $hardwarefile
for flag in cpu network disk bios pci; do
echo -e "\n\n====================== $flag ======================\n" >> $hardwarefile
...
...
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