forked from ungleich-public/ccollect
(pseudo) incremental backup with different exclude lists using hardlinks and rsync
f549334226
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> |
||
---|---|---|
conf | ||
contrib | ||
doc | ||
test | ||
tools | ||
.gitignore | ||
ccollect.sh | ||
COPYING | ||
CREDITS | ||
Makefile | ||
README | ||
release.sh |
-------------------------------------------------------------------------------- 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/