remote borg backup to synology nas fails #5608
-
I wanted to use the a remote borg repository for backing up nextcloud as described in: https://github.com/nextcloud/all-in-one#are-remote-borg-backups-supported Testing borg on my synology nas turned out successful. ssh-ing to it, I can run borg. Setting up vorta (on my computer) also works as expected. I'm using ssh on a non-standard port. May it be that the current borg backup solution is only supporting the standard ssh-port 22? Steps to reproduce
Expected behaviorA backup should be created Actual behaviorinitiating a backup after setting up the borg backup fails (see log below) Other informationHost OSAIO is installed on a synology nas (DS720+ with DSM 7.2.2-72806 Update 1) Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
cc @timdiels |
Beta Was this translation helpful? Give feedback.
-
OK, I think I found the source of the problem and a workaround. After creating a symlink using the task planner of the synology nas, run as root with a user defined script So, it's not really a bug of nextcloudAIO but just a synology related problem... |
Beta Was this translation helpful? Give feedback.
OK, I think I found the source of the problem and a workaround.
When installing borg from the SynoCommunity package, it populates /usr/local/bin/borg and not /usr/bin/borg.
When ssh-ing from my computer to the synology nas with:
ssh [email protected] -p YYYY -i ~/.ssh/key borg
it fails with the very same error as in the logs above (sh: borg: command not found).After creating a symlink using the task planner of the synology nas, run as root with a user defined script
ln -s /usr/local/bin/borg /usr/bin/borg
, the borg backup from nextcloudAIO starts working successfully.So, it's not really a bug of nextcloudAIO but just a synology related problem...