added rsync options backup, backup_dir and suffix

This commit is contained in:
Axel Kittenberger 2016-12-05 16:38:07 +01:00
parent db488a86ac
commit 19d0478bd7
2 changed files with 20 additions and 2 deletions

View File

@ -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

View File

@ -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