aboutsummaryrefslogtreecommitdiff
path: root/articles/2025/Rsync-backup-to-Synology-Diskstation.html
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2026-07-12 11:08:50 +0200
committerPhilip Wittamore <philip@wittamore.com>2026-07-12 11:08:50 +0200
commit420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 (patch)
tree3009f0564d75e3f7d1ca38507e7ebb92deaded07 /articles/2025/Rsync-backup-to-Synology-Diskstation.html
update
Diffstat (limited to 'articles/2025/Rsync-backup-to-Synology-Diskstation.html')
-rwxr-xr-xarticles/2025/Rsync-backup-to-Synology-Diskstation.html46
1 files changed, 46 insertions, 0 deletions
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 @@
+<!doctype html>
+<html lang="EN">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="stylesheet" href="/style.css">
+ <title>Rsync backup to Synology Diskstation</title>
+ </head>
+ <body>
+ <header>
+ <h1>Bloggings</h1>
+ <a href="/index.php">Back</a>
+
+ </header>
+
+<main>
+<article>
+<h2>Rsync backup to Synology Diskstation</h2>
+<h3>2025-03-25</h3>
+<h4>This could change but it works for me.</h4>
+<p>My Diskstation isn't always on, so I run this from the command line rather than cron.</p>
+<p>To avoid errors devices and links are skipped, permissions, times, group and owner are not written and files are compared by size only.</p>
+<p>Ssh is configured with ssh-copy-id for passwordless access and host:port details in .ssh/config</p>
+<h3>Note: I set the rsync options on the diskstation but had to chmod 755 my
+diskstation's home folder before passwordless ssh worked</h3>
+<code>#!/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
+
+</code>
+</article>
+</main>
+<footer>
+<p>&nbsp;</p><p>ยง</p></footer>
+</body></html>