Synology: Difference between revisions
Jump to navigation
Jump to search
(→How-To) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
See also: |
|||
* [[Configuration NAS Wolverine]] |
|||
* [[Configuration NAS Mystique]] |
|||
* [[Synology]] |
|||
== How-To == |
== How-To == |
||
=== |
=== Manage CloudStation / Drive ShareSync folder === |
||
Note: '''Cloudstation''' is discontinued. Now, we use '''Drive Server''', and '''Drive ShareSync'''. |
|||
On the server: |
|||
⚫ | |||
;Configure the Server |
|||
* Install the package '''Synology Drive Server'''. |
|||
⚫ | |||
:* 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] |
|||
⚫ | |||
* '''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: |
|||
<source lang=bash> |
|||
sudo synoservicecfg --start pkgctl-SynologyDrive |
|||
</source> |
|||
;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: |
|||
<source lang=bash> |
|||
sudo synoservicecfg --stop pkgctl-SynologyDrive |
|||
</source> |
|||
;Start/stop at given hour |
|||
⚫ | |||
* Go to '''Control Panel'''. |
|||
* Go to the CloudStation Sync client, and configure the new share. |
|||
* 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 === |
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]