Lines Matching defs:rsync
2 -- default-rsync.lua
4 -- Syncs with rsync ("classic" Lsyncd)
24 if default.rsync then
25 error( 'default-rsync already loaded' )
29 local rsync = { }
30 default.rsync = rsync
37 rsync.checkgauge = {
51 rsync = {
92 -- Spawns rsync for a list of events
97 rsync.action = function( inlet )
109 -- Replaces what rsync would consider filter rules by literals
191 'Calling rsync with filter-list of new/modified files/dirs\n',
204 config.rsync.binary,
206 config.rsync._computed,
223 rsync.init = function(event)
244 -- start rsync without any excludes
247 'recursive startup rsync: ',
255 config.rsync.binary,
257 config.rsync._computed,
264 -- start rsync providing an exclude list
270 'recursive startup rsync: ',
280 config.rsync.binary,
284 config.rsync._computed,
296 rsync.prepare = function(
309 'default.rsync needs "target" configured',
316 '"rsyncOps" is outdated please use the new rsync = { ... } syntax.',
321 if config.rsyncOpts and config.rsync._extra then
323 '"rsyncOpts" is outdated in favor of the new rsync = { ... } syntax\n"' +
333 '"rsyncOpts" is outdated. Please use the new rsync = { ... } syntax."'
336 config.rsync._extra = config.rsyncOpts
340 if config.rsyncBinary and config.rsync.binary then
342 '"rsyncBinary is outdated in favor of the new rsync = { ... } syntax\n"'+
352 '"rsyncBinary" is outdated. Please use the new rsync = { ... } syntax."'
355 config.rsync.binary = config.rsyncBinary
360 if config.rsync._computed then
362 'please do not use the internal rsync._computed parameter',
368 -- computes the rsync arguments into one list
370 local crsync = config.rsync;
482 computed[ computedN ] = '--rsync-path=' .. crsync.rsync_path
513 rsync.delete = true
518 rsync.exitcodes = default.rsyncExitCodes
521 -- Calls rsync with this default options
523 rsync.rsync = {
524 -- The rsync binary to be called.
525 binary = '/usr/bin/rsync',
535 rsync.delay = 15