Synology: Difference between revisions
Jump to navigation
Jump to search
(→How-To) |
|||
Line 6: | Line 6: | ||
On the Client: |
On the Client: |
||
* Go to the CloudStation Sync client, and configure the new share. |
* Go to the CloudStation Sync client, and configure the new share. |
||
=== Install borgbackup server === |
|||
Reference: |
|||
* https://roll.urown.net/NAS/borg-backup-server.html |
|||
* Add <code>https://packages.synocommunity.com/</code> 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). |
|||
<source lang=bash> |
|||
sudo su - |
|||
cd ~borg |
|||
mkdir -p .ssh |
|||
touch .ssh/authorized_keys |
|||
chown -R borg:users .ssh |
|||
chmod 0700 .ssh |
|||
chmod 0600 .ssh/* |
|||
</source> |
|||
* Create a password-less ssh key for that user |
|||
<source lang=bash> |
|||
ssh-keygen -t ed25519 -f id_ed25519_borgbackup |
|||
</source> |
|||
* Login into synology as admin, then create the restricted {{file|.ssh/authorized_keys}} |
|||
<source lang=text> |
|||
command="/usr/local/bin/borg serve --restrict-to-path /volume1/BorgBackup/" ssh-ed25519 AAAAC3... |
|||
</source> |
|||
== Troubleshoot == |
== Troubleshoot == |
Revision as of 20:57, 27 September 2020
How-To
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.
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]