Commit Graph

58 Commits

Author SHA1 Message Date
intrigeri
aeca6912a8 Added GZIP_OPTS option, defaulting to --rsyncable.
... so that this option can be disabled on systems that don't support it.
This also allows to use another compression program, such as pbzip2 on SMP
machines (closes Roundup bug #2405).
2010-06-14 19:06:59 +02:00
intrigeri
0fbd8744f5 set BACKUPNINJA_DEBUG when invoked with -d (Closes: #537266) 2010-01-09 01:19:21 +01:00
intrigeri
49bfd02bd3 reportspace: skip non-directories and places that don't exist on the local filesystem (Closes: #536049) 2010-01-05 14:34:30 +01:00
intrigeri
172b0e3341 Fixed indentation 2010-01-05 14:31:57 +01:00
intrigeri
8fb9415609 Adding optional report of infos sent by handlers in the email (closes #563734)
Cherry-picked and re-indented patch 76792c8f45afa1fdaeb81c2af77499ca0b83ce64
from Olivier Berger.

Conflicts:

	src/backupninja.in
2010-01-05 13:39:32 +01:00
intrigeri
4996d8deb7 autotools: added the stat command to the automagically replaced ones
... hoping it will help supporting *BSD some day.
2009-12-25 04:09:29 +01:00
Matthijs Kooijman
78884142e7 Add a vim modeline with indentation settings.
The modelines added match the emacs lines already present and also set
the filetype to sh (just like the emacs lines).
2009-05-23 10:42:20 +02:00
Matthijs Kooijman
4ecaae9405 Make all indentation consistent.
Previously, there were many indentation styles in use: Real tabs, 2, 3
or 4 spaces, mixing these within the same file, function or even within
a single line.

This commit changes all bash scripts in the handlers, src and lib dirs
to use consistent indentation: three spaces are now used everywhere.
Other files (e.g. Makefiles) are left untouched.

Additionally, this commit removes all trailing whitespace.
2009-05-23 10:34:16 +02:00
intrigeri
a1c625fcc3 add support for 'when = manual' (Closes: #511299) 2009-01-12 22:47:08 +00:00
intrigeri
4506202ea7 backupninja: do not assume English locale when using date (Closes: #465837) 2008-12-09 11:08:53 +00:00
intrigeri
c4f2b1d45e fix reportspace 2008-07-28 17:12:31 +00:00
intrigeri
4dc5c3443f Fixed tr construct reporting a warning (Closes: #452669). 2008-06-24 14:36:52 +00:00
intrigeri
c0ca5e3dda Allow the entire backup run to be halted by an action (Closes: #455836) 2008-06-24 10:48:55 +00:00
Micah Anderson
e1d439071b fix spelling error 2008-05-08 15:16:41 +00:00
Micah Anderson
cfca25c390 fix cstream definition 2008-03-13 15:48:59 +00:00
intrigeri
846213cfa4 Fixed reportspace option (Trac#10) 2007-10-12 17:42:46 +00:00
intrigeri
a906ba01c7 fixed Trac#11 2007-10-12 17:14:34 +00:00
Micah Anderson
c0126ff1ef added ninjareport
added ale to AUTHORS for ldap fixes
adjusted sys handler to allow for turning off of sfdisk (#404071)
2007-03-04 10:29:26 +00:00
Micah Anderson
05c26446ed updated autotools abstraction to properly pick up different awk, sed,
and md5sum locations
2007-02-23 18:04:04 +00:00
Micah Anderson
ea468148c5 Add Jamie McClelland's cstream patches 2006-12-15 23:13:47 +00:00
Micah Anderson
1727edae52 fixed case where combination of compress=no and specifying individual
vservers and mysqld wasn't running or mysqldump didn't exist would cause
a zero byte backup file
2006-12-13 05:36:41 +00:00
intrigeri
6b015afc1e pgsql: support PGSQLUSER for real (Closes: #396578) 2006-11-01 18:26:41 +00:00
intrigeri
5eef842c2b fixed configuration files permission check 2006-10-08 00:42:47 +00:00
intrigeri
26e33dcc47 ninjahelper.in: remove runtime overzealous perms checks on the helpers 2006-10-07 02:44:05 +00:00
intrigeri
c836982f43 backupninja.in: words missing in error message 2006-10-07 02:14:42 +00:00
Micah Anderson
4ce9c573c8 Added disk space report option (adam kosmin suggestion)
removed sys vserver not running noise report (anarcat suggestion)
2006-10-06 18:42:32 +00:00
Micah Anderson
56e2f27e79 Fixed stat to use --format instead of --printf to be compatible with coreutils 2006-08-13 15:53:11 +00:00
intrigeri
90316a3352 backupninja and ninjahelper: have find following symlinks for config files also work on sarge, by replacing -L with -follow 2006-07-13 20:30:13 +00:00
Micah Anderson
c22ad121d9 Changed order of -s in the mail call for compatibility, from
anarcat
2006-06-10 16:20:05 +00:00
Micah Anderson
11601b4ccd Add fix from anarcat for ${configdirectory} in ninjahelper, also add -L to find to follow symlinks in case this
directory is actually not a directory, but instead a symlink to somewhere else
2006-06-10 16:09:59 +00:00
Micah Anderson
f07f4b873b the find that looks in /etc/backup.d didn't follow symlinks and would instead fail
silently causing me much confusion, so I added -L to find and an if statement to
spit something out so its obvious
2006-06-10 13:40:22 +00:00
Micah Anderson
489e294c50 Added a slightly modified version of the anti-fascist patch (allows for
a configurable admingroup to be set, instead of forcing it to be root),
closes debian bug#370396
2006-06-09 17:27:21 +00:00
intrigeri
8776e3a3e3 ninjahelper: Recursively ignore subdirs in /etc/backup.d (Finally Closes: #361102) 2006-05-30 03:41:39 +00:00
intrigeri
5158f2569f Recursively ignore subdirs in /etc/backup.d (Closes: #361102) 2006-04-08 10:44:55 +00:00
Micah Anderson
dd0903db42 Apparantly it is common practice to NOT keep generated files in the repository,
since Makefile.in is generated through autogen.sh or autoreconf, it shouldn't be
put in the repo itself (except on release)
2006-01-26 20:53:34 +00:00
intrigeri
55b02f8536 code refactor: backupninja now uses vservers lib to init vservers support
(I hate duplicated code!)
2006-01-17 22:22:52 +00:00
intrigeri
badd9c82b9 backupninja.in: improved VROOTDIR detection as in lib/vserver.in 2006-01-17 22:22:25 +00:00
Elijah Saxon
18052afed3 . now reports error if the helper script has a syntax error or bombs out.
. code formatting cleanup (three spaces indent)
2006-01-09 00:20:15 +00:00
intrigeri
c8efb40b7f r263@crapouille: intrigeri | 2005-12-28 21:19:10 +0100
Reverted indentation level to 3.
2005-12-28 20:19:29 +00:00
intrigeri
cfc47e5571 r261@crapouille: intrigeri | 2005-12-28 20:59:01 +0100
Changed default indentation level to 8, to make it presbyopia-friendly
2005-12-28 19:59:12 +00:00
intrigeri
0d606253af Added the "Emacs comment line" on top of every shell file. 2005-12-28 19:52:22 +00:00
Micah Anderson
c26bd0e12d Fixed broken toint function, causes backups to not run from cron
when told to run "everyday" (debian bug: #341881)
2005-12-16 16:15:13 +00:00
intrigeri
4f344987a9 Reverted bashism removals from r228, after discussing this. 2005-11-29 10:32:02 +00:00
intrigeri
d56c0f0aee r3566@krups: intrigeri | 2005-11-17 21:59:38 +0100
ninjahelper: moved (and enhanced) vservers-related functions to lib/vservers. dup.helper, pgsql.helper: use these functions
2005-11-29 10:10:53 +00:00
intrigeri
5b392f68ba r3565@krups: intrigeri | 2005-11-16 20:43:44 +0100
ninjahelper and backupninja: cosmetic enhancement of the "am I root?" test.
2005-11-29 10:10:42 +00:00
intrigeri
089f74ad69 r3563@krups: intrigeri | 2005-11-16 20:32:41 +0100
ninjahelper: documented a few pieces of code
2005-11-29 10:10:21 +00:00
intrigeri
9208b449da r3562@krups: intrigeri | 2005-11-16 20:20:16 +0100
Moved more code to lib/ (conffile-related functions, parseini. Added dup helper, using new modular vservers-related functions shared for all helpers.
2005-11-29 10:10:08 +00:00
intrigeri
13893e6d25 r3561@krups: intrigeri | 2005-11-15 15:16:50 +0100
ninjahelper: use autotools' @BASH@ instead of hard-coded path
2005-11-29 10:09:55 +00:00
intrigeri
285f38ac31 r3560@krups: intrigeri | 2005-11-15 15:13:35 +0100
backupninja now uses the maketemp function shared in lib/tools, instead of its own one.
2005-11-29 10:09:43 +00:00
intrigeri
5d63983704 r3559@krups: intrigeri | 2005-11-15 15:07:17 +0100
ninjahelper & backupninja now set $libdir when bootstrapping. improved $scriptdir search, too.
2005-11-29 10:09:31 +00:00