Dokuwiki / rsync with folder that need root access

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.11
How are you able to access your server: The webadmin
SSH
Direct access via physical keyboard/screen

Describe your issue

Hello,

I would like to copy Yunohost Dokuwiki data folder to a Dokuwiki instance on my laptop (for offline use). The idea is to have an up to date offline version of my wiki on my laptop (mirror copy only, not real sync))

I use the rsync command that look like:

rsync -av –delete-after admin@192.168.1.66:/var/www/dokuwiki/data /var/www/html/dokuwiki/

But of course it doesn’t work as /var/www/dokuwiki/data is not accessible for admin. And the problem is that I need root access on both side so I don’t know how to easily copy this folder without using “root” ssh account (disabled since 2019 if I remember well).

How should I do?

(I guess this question is beyond Dokuwiki, that’s why I posted in General support, sorry if I was mistaken).

Share relevant logs or error messages

Terminal only says rsync error: syntax or usage error (code 1) at main.c(1512) [sender=3.2.7]

I have tested on my server using syncthing but with some modifications : I added permissions for syncthing to /var/www/dokuwiki/data

sudo setfacl -R -m u:syncthing:rwx /var/www/dokuwiki/data
sudo setfacl -R -d -m u:syncthing:rwx /var/www/dokuwiki/data

Restarted syncthing
sudo systemctl restart syncthing

Add the folder in syncthing.
Sync using desktop app.

:warning: But before that, make a backup of your dokuwiki app.

Thank you for sharing your experience.
I would rather prefer not to install Syncthing on my server and to rely on a simple command, if possible.

But I am not sure I can do this copy of a folder easily through ssh.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.