From 41427964ac3864269b40138b47fb3d905753a780 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sat, 1 Oct 2016 13:48:30 +0100 Subject: [PATCH] Removed --archive flag and replaced it with the actual options, to make it clear what's happening. Also removed --verbose --- rsync_tmbackup.sh | 2 +- test/dest | 1 + test/dest with/2016-10-01-134257/123.txt | 0 test/dest with/backup.marker | 0 test/dest with/latest | 1 + test/soure with spaces/123.txt | 0 6 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 test/dest create mode 100644 test/dest with/2016-10-01-134257/123.txt create mode 100644 test/dest with/backup.marker create mode 120000 test/dest with/latest create mode 100644 test/soure with spaces/123.txt 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 diff --git a/test/dest with/backup.marker b/test/dest with/backup.marker new file mode 100644 index 0000000..e69de29 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