patrickpeng2091 / lsyncd

Automatically exported from code.google.com/p/lsyncd
GNU General Public License v2.0
0 stars 0 forks source link

Problem with brackets in filename #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Tryin' to sync a directory with brackets in filename, there's an error managing 
the filename.

Thu Nov 25 16:32:19 2010: rsyncing /myhome/sync/ --> user@host:/space/sync/
Thu Nov 25 16:32:25 2010: rsyncing /myhome/sync/Music/ --> 
user@host:/space/sync/Music/
Thu Nov 25 16:35:29 2010: rsyncing /myhome/sync/Music/album (year)/ --> 
user@host:/space/sync/Music/album (year)/ 
bash: -c: line 0: syntax error near unexpected token `('
bash: -c: line 0: `rsync --server -ldte.Lsf --no-r --delete . 
/space/sync/Music/album (year)/'
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) 
[sender=3.0.7]
Thu Nov 25 16:35:35 2010: Forked binary process returned non-zero return code: 
12
Thu Nov 25 16:35:35 2010: ERROR: Rsync from /myhome/sync/Music/album (year)/ to 
user@host:/space/sync/Music/album (year)/ failed

Debian package currently on the testing branch, Version: 1.34-1

Original issue reported on code.google.com by darkp...@gmail.com on 25 Nov 2010 at 4:34

GoogleCodeExporter commented 9 years ago
add "s" to your rsync options, using the config file. or change the source 

----
/**
 * Standard default options to call the binary with.
 */ 
struct call_option standard_callopts[] = {
    { CO_TEXT,    "-lt%r"    },
    { CO_TEXT,    "--delete" },
---- to ----
/**
 * Standard default options to call the binary with.
 */ 
struct call_option standard_callopts[] = {
    { CO_TEXT,    "-lts%r"    },
    { CO_TEXT,    "--delete" },
----

This was fixed in version 1.38

Original comment by axk...@gmail.com on 25 Nov 2010 at 5:35

GoogleCodeExporter commented 9 years ago

Original comment by axk...@gmail.com on 27 Nov 2010 at 1:21