summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Cozic <laurent@cozic.net>2016-10-01 13:48:30 +0100
committerLaurent Cozic <laurent@cozic.net>2016-10-01 13:48:30 +0100
commit41427964ac3864269b40138b47fb3d905753a780 (patch)
tree25782771cbc6d0437203759ef014b960267dff01
parent56a3a89866cc3914f429c1ca1e328a34cb6fcc29 (diff)
Removed --archive flag and replaced it with the actual options, to make it clear what's happening. Also removed --verbose
-rwxr-xr-xrsync_tmbackup.sh2
-rw-r--r--test/dest1
-rw-r--r--test/dest with/2016-10-01-134257/123.txt0
-rw-r--r--test/dest with/backup.marker0
l---------test/dest with/latest1
-rw-r--r--test/soure with spaces/123.txt0
6 files changed, 3 insertions, 1 deletions
diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh
index 900fb65..0885dc8 100755
--- a/rsync_tmbackup.sh
+++ b/rsync_tmbackup.sh
@@ -124,7 +124,7 @@ SRC_FOLDER=""
DEST_FOLDER=""
EXCLUSION_FILE=""
-RSYNC_FLAGS="--compress --numeric-ids --links --hard-links --one-file-system --archive --itemize-changes --verbose"
+RSYNC_FLAGS="-D --compress --numeric-ids --links --hard-links --one-file-system --itemize-changes --times --recursive --perms --owner --group"
while :; do
case $1 in
diff --git a/test/dest b/test/dest
new file mode 100644
index 0000000..2da07ae
--- /dev/null
+++ b/test/dest
@@ -0,0 +1 @@
+6196 with/backup.inprogress
diff --git a/test/dest with/2016-10-01-134257/123.txt b/test/dest with/2016-10-01-134257/123.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/dest with/2016-10-01-134257/123.txt
diff --git a/test/dest with/backup.marker b/test/dest with/backup.marker
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/dest with/backup.marker
diff --git a/test/dest with/latest b/test/dest with/latest
new file mode 120000
index 0000000..904ad9d
--- /dev/null
+++ b/test/dest with/latest
@@ -0,0 +1 @@
+2016-10-01-134257 \ No newline at end of file
diff --git a/test/soure with spaces/123.txt b/test/soure with spaces/123.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/soure with spaces/123.txt