SOLVED Rsync with multiple options not working

Status
Not open for further replies.

dnilgreb

Contributor
Joined
Mar 29, 2016
Messages
168
I have a few rsync tasks setup, and I am struggling with the Extra options field. First I added this, for logging:

Code:
--progress --log-file=/var/log/rsync.log


That works as intended. I then tried putting this in the Extra options field, to exclude mounted folders:

Code:
--exclude=Folder1 --exclude=Folder2


Also works, all instances of Folder1 and Folder2 are skipped.

So, finally, i´d like my Extra options field to contain all of that, like this:

Code:
--progress --log-file=/var/log/rsync.log --exclude=Folder1 --exclude=Folder2


Now there´s trouble. At first, rsync would´nt even run, but gave me an error:

Code:
2017/07/06 10:01:13 [8261] rsync: connection unexpectedly closed (0 bytes received so far) [sender]
2017/07/06 10:01:13 [8261] rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]


After trying back and forth with putting commands in different orders, it suddenly works. Or well, rsync runs and correct folders are skipped. But nothing is logged.
Extra options now looks like this (added comma):

Code:
--progress --log-file=/var/log/rsync.log, --exclude=Folder1 --exclude=Folder2


Am i doing somthing wrong?
 

dnilgreb

Contributor
Joined
Mar 29, 2016
Messages
168
Removed the comma. It suddenly works perfectly. Please disregard thread
 
Status
Not open for further replies.
Top