(pseudo) incremental backup with different exclude lists using hardlinks and rsync
Find a file
Nico Schottelius f549334226 Add rsync arguments for source checking
Fix proposed by Nikita Koshikov:

--------------------------------------------------------------------------------
[...]

[guard] + set -- --archive --delete --numeric-ids --relative --delete-excluded --sparse --stats -v
[guard] + '[' -f /etc/ccollect/sources/guard/rsync_options ']'
[guard] + read line
[guard] + set -- --archive --delete --numeric-ids --relative --delete-excluded --sparse --stats -v
--password-file=/etc/ccollect/passwd
[guard] + read line
[guard] + rsync backup@192.168.1.8::etc
Password:

In this place it's sit and waiting for password. If I comment out related ccollect code section everything
start working as expected. I had to modify this part to be look like:

if ! rsync "${source}" "$@" >/dev/null 2>"${TMP}" ; then
    if [ ! -f "${c_quiet_if_down}" ]; then
       cat "${TMP}"
    fi
    _exit_err "Source ${source} is not readable. Skipping."
fi

Then checking host activity is passed and backup process running successful.

--------------------------------------------------------------------------------

Changed it to "$@" "$source" instead, to be consistent and use options
before source.

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-08-21 13:03:38 +02:00
conf config: add default option and disable it for one source 2009-07-29 09:08:38 +02:00
contrib add luckys patches 2009-07-23 18:55:25 +02:00
doc prepare release 0.8 2009-08-20 17:36:09 +02:00
test begin to write a test for the whole ccollect tools 2009-08-20 10:09:07 +02:00
tools [BUGFIX (untested)] fix current directory removal 2009-08-20 09:49:47 +02:00
.gitignore Ignore texi/fo 2007-08-17 11:28:05 +02:00
ccollect.sh Add rsync arguments for source checking 2009-08-21 13:03:38 +02:00
COPYING Copy the correct COPYING file (replaced wrong LGPL3 with GPL3) 2009-08-03 12:22:39 +02:00
CREDITS add automatic backup manager CREDITS 2009-06-21 00:50:04 +02:00
Makefile Test: include removal of incomplete backups 2009-07-28 17:09:34 +02:00
README update ccollect vs. rsnapshot LOC statistic 2009-07-23 19:42:56 +02:00
release.sh update url of homepage 2009-07-01 10:00:18 +02:00

--------------------------------------------------------------------------------
ccollect.sh, Nico Schottelius, 2005-12-06
--------------------------------------------------------------------------------

ccollect backups (local or remote) data to local or remote destinations.

You can retrieve the latest version of ccollect at [0].

ccollect was inspired by rsnapshot [1], which has some problems:
   - configuration parameters has to be TAB seperated
   - you can not specify per source exclude lists
   - no per source pre/post execution support
   - no parallel execution
   - does unecessary moving of backup directories
   - I didn't like the configuration at all, so I used the cconfig style [2].

Please use tools/report_success.sh to report success, if you are successfully
using ccollect.

Have a look at doc/HACKING, if you plan to change ccollect.

A small try to visualize the differences in a table:

+---------------+-------------------------------------------------------------+
|     What?     |         rsnapshot            |         ccollect             |
+---------------+-------------------------------------------------------------+
| Configuration | tab separated, needs         |     plain cconfig-style      |
|               | parsing                      |                              |
+---------------+-------------------------------------------------------------+
| Per source    |                              |                              |
| post-/pre-    |            no                |            yes               |
| execution     |                              |                              |
+---------------+-------------------------------------------------------------+
| Per source    |                              |                              |
| exclude lists |            no                |            yes               |
+---------------+-------------------------------------------------------------+
| Parallel      |                              |                              |
| execution     |                              |                              |
| of multiple   |            no                |            yes               |
| backups       |                              |                              |
+---------------+-------------------------------------------------------------+
| Programming   |            perl              |            sh                |
| language      |                              |      (posix compatible)      |
+---------------+-------------------------------------------------------------+
| Lines of code |  6772 (5353 w/o comments,    |  546 (375 w/o comments,      |
| (2006-10-25)  |        4794 w/o empty lines) |       288 w/o empty lines)   |
+---------------+-------------------------------------------------------------+
| Lines of code |  7269 (6778 w/o comments,    |  587 (397 w/o comments,      |
| (2009-07-23)  |        6139 w/o empty lines) |       315 w/o empty lines)   |
+---------------+-------------------------------------------------------------+
|    Age        |  Available since 2002/2003   |    Written at 2005-11-14     |
+---------------+-------------------------------------------------------------+

Included documentation:

doc/ccollect.text          Manual in text format
doc/ccollect.html          Manual in xhtml (generated)

doc/man/ccollect.text      Manpage in text format
doc/man/ccollect.man       Manpage in manpage format (generated)

--------------------------------------------------------------------------------
[0]: ccollect:    http://www.nico.schottelius.org/software/ccollect/
[1]: rsnapshot:   http://www.rsnapshot.org/
[2]: cconfig:     http://nico.schotteli.us/papers/linux/cconfig/