From 420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 Mon Sep 17 00:00:00 2001 From: Philip Wittamore Date: Sun, 12 Jul 2026 11:08:50 +0200 Subject: update --- .../2025/Rsync-backup-to-Synology-Diskstation.html | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 articles/2025/Rsync-backup-to-Synology-Diskstation.html (limited to 'articles/2025/Rsync-backup-to-Synology-Diskstation.html') diff --git a/articles/2025/Rsync-backup-to-Synology-Diskstation.html b/articles/2025/Rsync-backup-to-Synology-Diskstation.html new file mode 100755 index 0000000..62f9c50 --- /dev/null +++ b/articles/2025/Rsync-backup-to-Synology-Diskstation.html @@ -0,0 +1,46 @@ + + + + + + + Rsync backup to Synology Diskstation + + +
+

Bloggings

+ Back + +
+ +
+
+

Rsync backup to Synology Diskstation

+

2025-03-25

+

This could change but it works for me.

+

My Diskstation isn't always on, so I run this from the command line rather than cron.

+

To avoid errors devices and links are skipped, permissions, times, group and owner are not written and files are compared by size only.

+

Ssh is configured with ssh-copy-id for passwordless access and host:port details in .ssh/config

+

Note: I set the rsync options on the diskstation but had to chmod 755 my +diskstation's home folder before passwordless ssh worked

+#!/bin/sh + + rsync -r --no-D --no-t --no-o --no-g --no-p \ + --size-only \ + --delete \ + --update \ + --exclude .cache/ \ + --exclude Downloads/ \ + --exclude tmp/ \ + --exclude .local/share/Trash/ \ + --exclude .wine \ + --info=progress2 \ + --stats \ + /home/philip philip@dsm:backup-X220 + + +
+
+ + -- cgit v1.3.1