Synology NAS sync from Linux with rsync over SSH

Goals Configure the NAS to accept SSH and Rsync connections Enable SSH with pub-Key Deploy pub key Synchronize files with rsync Prerequisites We assume, that the Synology NAS basic configuration has been applied and that a shared directory is ready to be our sync target. We will be synchronizing the directory /tmp/samples to the NAS directory /volumes/samples. Synology NAS Setup First of all we need to enable some services on our NAS. ...

May 14, 2021 · 3 min · 434 words · Micha Kops

Linux Snippets

Tip These are not only linux snippets but also bash snippets and snippets using tools that run under Linux, *nix or sometimes even MacOSX, I should reorder this article someday ;) Settings for more reliable bash scripts set -euo pipefail this gives us …​ -e: exit script if a single command fails -u: exit script if an unset variable is used -o pipefail: return value of a pipeline is the status of the last command to exit with a non-zero status, or zero if no command exited with a non-zero status ...

March 1, 2010 · 15 min · 2998 words · Micha Kops