Synology: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:


== How-To ==
== How-To ==
=== Add a CloudStation ShareSync folder ===
=== Manage CloudStation / Drive ShareSync folder ===
Note: '''Cloudstation''' is discontinued. Now, we use '''Drive Server''', and '''Drive ShareSync'''.
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:
;Configure the Server
* Install the package '''Synology Drive Server'''.
* Go to the CloudStation Sync client, and configure the new share.
* 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. [https://www.synology.com/en-global/knowledgebase/DSM/tutorial/Cloud_Service/What_should_I_do_when_the_message_No_shared_folder_available_to_sync_appears_on_Cloud_Station_Drive]

;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.

;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/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 ===
=== Install borgbackup server ===

Revision as of 19:23, 6 October 2020

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.
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/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]