Synology: Difference between revisions
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
* Go to '''Team Folder'''. |
* 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] |
* '''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: |
;Configure the Client: |
||
Line 20: | Line 21: | ||
:* If not available, enable ''Drive Server'' service first (see below) |
:* If not available, enable ''Drive Server'' service first (see below) |
||
* Add a new server, or configure the ''Synced folders''. |
* Add a new server, or configure the ''Synced folders''. |
||
;Start manually the Driver Server / ShareSync service |
;Start manually the Driver Server / ShareSync service |
||
* Go to '''Package Center''', '''Installed''' package. |
* Go to '''Package Center''', '''Installed''' package. |
||
* Select '''Synology Drive Server''', then select '''run''' in the drop button. |
* Select '''Synology Drive Server''', then select '''run''' in the drop button. |
||
;Start manually the Driver Server / ShareSync service (with SSH) |
|||
* Connect with SSH: |
|||
<source lang=bash> |
|||
sudo synoservicecfg --start pkgctl-SynologyDrive |
|||
</source> |
|||
;Stop manually the Driver Server / ShareSync service |
;Stop manually the Driver Server / ShareSync service |
||
* Go to '''Package Center''', '''Installed''' package. |
* Go to '''Package Center''', '''Installed''' package. |
||
* Select '''Synology Drive Server''', then select '''stop''' in the drop button. |
* Select '''Synology Drive Server''', then select '''stop''' in the drop button. |
||
;Start manually the Driver Server / ShareSync service (with SSH) |
|||
* Connect with SSH: |
|||
<source lang=bash> |
|||
sudo synoservicecfg --stop pkgctl-SynologyDrive |
|||
</source> |
|||
;Start/stop at given hour |
;Start/stop at given hour |
Latest revision as of 19:26, 6 October 2020
See also:
How-To
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.
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]