mirror of https://github.com/octoleo/lsyncd.git
added rsync options backup, backup_dir and suffix
This commit is contained in:
parent
db488a86ac
commit
19d0478bd7
|
@ -1,15 +1,17 @@
|
||||||
??-??-????:
|
??-??-????:
|
||||||
enhancement: add rsync options:
|
enhancement: add rsync options:
|
||||||
"append",
|
"append",
|
||||||
"append-verify",
|
"append_verify",
|
||||||
|
"backup",
|
||||||
|
"backup_dir",
|
||||||
"chmod",
|
"chmod",
|
||||||
"chown",
|
"chown",
|
||||||
"copy_dirlinks",
|
"copy_dirlinks",
|
||||||
"existing",
|
"existing",
|
||||||
"groupmap",
|
"groupmap",
|
||||||
"omit_dir_times",
|
"omit_dir_times",
|
||||||
"omit_dir_times"
|
|
||||||
"omit_link_times",
|
"omit_link_times",
|
||||||
|
"suffix,"
|
||||||
"usermap",
|
"usermap",
|
||||||
enhancement: settings{ } now checks for unknown entries and errors if so.
|
enhancement: settings{ } now checks for unknown entries and errors if so.
|
||||||
change: Lsyncd now writes a startup log message before daemonizing
|
change: Lsyncd now writes a startup log message before daemonizing
|
||||||
|
|
|
@ -56,6 +56,8 @@ rsync.checkgauge = {
|
||||||
append = true,
|
append = true,
|
||||||
append_verify = true,
|
append_verify = true,
|
||||||
archive = true,
|
archive = true,
|
||||||
|
backup = true,
|
||||||
|
backup_dir = true,
|
||||||
binary = true,
|
binary = true,
|
||||||
bwlimit = true,
|
bwlimit = true,
|
||||||
checksum = true,
|
checksum = true,
|
||||||
|
@ -89,6 +91,7 @@ rsync.checkgauge = {
|
||||||
rsh = true,
|
rsh = true,
|
||||||
rsync_path = true,
|
rsync_path = true,
|
||||||
sparse = true,
|
sparse = true,
|
||||||
|
suffix = true,
|
||||||
temp_dir = true,
|
temp_dir = true,
|
||||||
timeout = true,
|
timeout = true,
|
||||||
times = true,
|
times = true,
|
||||||
|
@ -425,6 +428,7 @@ rsync.prepare =
|
||||||
|
|
||||||
local shortFlags = {
|
local shortFlags = {
|
||||||
acls = 'A',
|
acls = 'A',
|
||||||
|
backup = 'b',
|
||||||
checksum = 'c',
|
checksum = 'c',
|
||||||
compress = 'z',
|
compress = 'z',
|
||||||
copy_dirlinks = 'k',
|
copy_dirlinks = 'k',
|
||||||
|
@ -505,6 +509,12 @@ rsync.prepare =
|
||||||
computed[ computedN ] = '--append-verify'
|
computed[ computedN ] = '--append-verify'
|
||||||
computedN = computedN + 1
|
computedN = computedN + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if crsync.backup_dir
|
||||||
|
then
|
||||||
|
computed[ computedN ] = '--backup-dir=' .. crsync.backup_dir
|
||||||
|
computedN = computedN + 1
|
||||||
|
end
|
||||||
|
|
||||||
if crsync.bwlimit
|
if crsync.bwlimit
|
||||||
then
|
then
|
||||||
|
@ -560,6 +570,12 @@ rsync.prepare =
|
||||||
computedN = computedN + 1
|
computedN = computedN + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if crsync.suffix
|
||||||
|
then
|
||||||
|
computed[ computedN ] = '--suffix=' .. crsync.suffix
|
||||||
|
computedN = computedN + 1
|
||||||
|
end
|
||||||
|
|
||||||
if crsync.temp_dir
|
if crsync.temp_dir
|
||||||
then
|
then
|
||||||
computed[ computedN ] = '--temp-dir=' .. crsync.temp_dir
|
computed[ computedN ] = '--temp-dir=' .. crsync.temp_dir
|
||||||
|
|
Loading…
Reference in New Issue