[BUGFIX] allow "&" in sourcepath
Bug description: From: Tiziano Müller <dev-zero@g.o> Subject: Notiz: Probleme mit Ampersand in source Date: Tue, 07 Oct 2008 16:11:10 +0000 Hoi Nico Kleine Notiz wie im IRC besprochen: - Hat es in /etc/ccollect/sources/$BACKUPNAME/source ein Ampersand muss dieses Escaped werden, da sonst folgender Fehler auftritt: *snip* [volumes_ForschungEntwicklung] 2008-10-05-03:10:03: Beginning to backup, this may take some time... [volumes_ForschungEntwicklung] 2008-10-05-03:10:03: Creating /home/backup/volumes/Forschung&Entwicklung/daily.20081005-0310.15173 ... [volumes_ForschungEntwicklung] 2008-10-05-03:10:03: Transferring files... [volumes_ForschungEntwicklung] bash: Entwicklung/*: No such file or directory [volumes_ForschungEntwicklung] rsync: connection unexpectedly closed (4 bytes received so far) [receiver] [volumes_ForschungEntwicklung] rsync error: error in rsync protocol data stream (code 12) at io.c(635) [receiver=3.0.2] [volumes_ForschungEntwicklung] 2008-10-05-03:10:03: Finished backup (rsync return code: 12). [volumes_ForschungEntwicklung] 2008-10-05-03:10:03: Warning: rsync exited non-zero, the backup may be broken (see rsync errors). *snip* - ein "&" im Namen fürs Backup, also: /etc/ccollect/sources/volumes_Forschung&Entwicklung/ wird beim Anzeigen (wie oben zu sehen) verschluckt. Cheers, Tiziano Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
337fec115b
commit
b3ad86f270
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# 2005-2008 Nico Schottelius (nico-ccollect at schottelius.org)
|
||||
# 2005-2009 Nico Schottelius (nico-ccollect at schottelius.org)
|
||||
#
|
||||
# This file is part of ccollect.
|
||||
#
|
||||
|
@ -38,7 +38,7 @@ CPOSTEXEC="${CDEFAULTS}/post_exec"
|
|||
|
||||
TMP=$(mktemp "/tmp/${__myname}.XXXXXX")
|
||||
VERSION=0.7.1
|
||||
RELEASE="2008-04-XX"
|
||||
RELEASE="2009-XX-XX"
|
||||
HALF_VERSION="ccollect ${VERSION}"
|
||||
FULL_VERSION="ccollect ${VERSION} (${RELEASE})"
|
||||
|
||||
|
@ -79,7 +79,7 @@ _exit_err()
|
|||
|
||||
add_name()
|
||||
{
|
||||
sed "s:^:\[${name}\] :"
|
||||
awk "{ print \"[${name}] \" \$0 }"
|
||||
}
|
||||
|
||||
pcmd()
|
||||
|
|
Loading…
Reference in a new issue