Synology

From miki
Jump to navigation Jump to search

See also:

How-To

Manage CloudStation / Drive ShareSync folder

Note: Cloudstation is discontinued. Now, we use Drive Server, and Drive ShareSync.

Configure the Server
  • Install the package Synology Drive Server.
  • Go to Main Menu (top left), and launch Synology Drive Admin Console
  • Alternatively, go to Package Center → Drive → Open. This opens the Drive admin console.
  • Go to Team Folder.
  • Enable each folder that must be available for sync'ing. [1]
Configure the Client
  • Drive ShareSync is also part of the package Synology Drive Server, so install that package first.
  • Go to Main Menu (top left), and launch Synology Drive ShareSync.
  • If not available, enable Drive Server service first (see below)
  • Add a new server, or configure the Synced folders.
Start manually the Driver Server / ShareSync service
  • Go to Package Center, Installed package.
  • Select Synology Drive Server, then select run in the drop button.
Start manually the Driver Server / ShareSync service (with SSH)
  • Connect with SSH:
sudo synoservicecfg --start pkgctl-SynologyDrive
Stop manually the Driver Server / ShareSync service
  • Go to Package Center, Installed package.
  • Select Synology Drive Server, then select stop in the drop button.
Start manually the Driver Server / ShareSync service (with SSH)
  • Connect with SSH:
sudo synoservicecfg --stop pkgctl-SynologyDrive


Start/stop at given hour
  • Go to Control Panel.
  • Select Task Scheduler.
  • Add tasks to start and stop the service Synology Drive Server.
  • NOTE: file deletion are not detected when Drive ShareSync is not running. As a result, deleted files will be restored.

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.[2]