diff --git a/ChangeLog b/ChangeLog index d805c77..f593a9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,15 +1,17 @@ ??-??-????: enhancement: add rsync options: "append", - "append-verify", + "append_verify", + "backup", + "backup_dir", "chmod", "chown", "copy_dirlinks", "existing", "groupmap", "omit_dir_times", - "omit_dir_times" "omit_link_times", + "suffix," "usermap", enhancement: settings{ } now checks for unknown entries and errors if so. change: Lsyncd now writes a startup log message before daemonizing diff --git a/default-rsync.lua b/default-rsync.lua index a1bcc78..4c9b2d5 100644 --- a/default-rsync.lua +++ b/default-rsync.lua @@ -56,6 +56,8 @@ rsync.checkgauge = { append = true, append_verify = true, archive = true, + backup = true, + backup_dir = true, binary = true, bwlimit = true, checksum = true, @@ -89,6 +91,7 @@ rsync.checkgauge = { rsh = true, rsync_path = true, sparse = true, + suffix = true, temp_dir = true, timeout = true, times = true, @@ -425,6 +428,7 @@ rsync.prepare = local shortFlags = { acls = 'A', + backup = 'b', checksum = 'c', compress = 'z', copy_dirlinks = 'k', @@ -505,6 +509,12 @@ rsync.prepare = computed[ computedN ] = '--append-verify' computedN = computedN + 1 end + + if crsync.backup_dir + then + computed[ computedN ] = '--backup-dir=' .. crsync.backup_dir + computedN = computedN + 1 + end if crsync.bwlimit then @@ -560,6 +570,12 @@ rsync.prepare = computedN = computedN + 1 end + if crsync.suffix + then + computed[ computedN ] = '--suffix=' .. crsync.suffix + computedN = computedN + 1 + end + if crsync.temp_dir then computed[ computedN ] = '--temp-dir=' .. crsync.temp_dir