Synology

From miki
Revision as of 20:57, 27 September 2020 by Mip (talk | contribs) (→‎How-To)
Jump to navigation Jump to search

How-To

Add a CloudStation ShareSync folder

On the server:

  • Go to Main Menu (top left), select Drive Admin Console, go to Team Folder, then select the folder to enable.

On the Client:

  • Go to the CloudStation Sync client, and configure the new share.

Install borgbackup server

Reference:

  • Add https://packages.synocommunity.com/ as Package Source.
  • Install Borg from the community package list.
  • Create a new user borg, and add it to group administrator (to enable ssh access).
sudo su -
cd ~borg
mkdir -p .ssh
touch .ssh/authorized_keys
chown -R borg:users .ssh
chmod 0700 .ssh
chmod 0600 .ssh/*
  • Create a password-less ssh key for that user
ssh-keygen -t ed25519 -f id_ed25519_borgbackup
  • Login into synology as admin, then create the restricted .ssh/authorized_keys
command="/usr/local/bin/borg serve --restrict-to-path /volume1/BorgBackup/" ssh-ed25519 AAAAC3...

Troubleshoot

CloudStation Sync not syncing

Solution:

  • Restart the CloudStation server.

Permission settings greyed out for 'photo' share

Solution:

  • Manage user / group privilege in the Photo Station app.

Can't access using ssh

To access with ssh, the user must be added to the administrator group.[1]