# Dokuwiki / rsync with folder that need root access

**URL:** https://forum.yunohost.org/t/dokuwiki-rsync-with-folder-that-need-root-access/35015
**Category:** Support
**Tags:** sync, english
**Created:** [January 25, 2025, 2:15pm UTC](https://forum.yunohost.org/t/dokuwiki-rsync-with-folder-that-need-root-access/35015 "2025-01-25T14:15:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![croulibri](https://forum.yunohost.org/user_avatar/forum.yunohost.org/croulibri/32/3381_2.png) [@croulibri](https://forum.yunohost.org/u/croulibri)
#### Post date: [January 25, 2025, 2:15pm UTC](https://forum.yunohost.org/t/dokuwiki-rsync-with-folder-that-need-root-access/35015/1 "2025-01-25T14:15:05Z")

</div>

**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]`

---

<div class="post-metadata">

### Author: ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)
#### Post date: [January 25, 2025, 9:29pm UTC](https://forum.yunohost.org/t/dokuwiki-rsync-with-folder-that-need-root-access/35015/2 "2025-01-25T21:29:41Z")

</div>

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

```auto
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.

⚠ **But before that, make a backup of your dokuwiki app.**

---

<div class="post-metadata">

### Author: ![croulibri](https://forum.yunohost.org/user_avatar/forum.yunohost.org/croulibri/32/3381_2.png) [@croulibri](https://forum.yunohost.org/u/croulibri)
#### Post date: [January 26, 2025, 8:02pm UTC](https://forum.yunohost.org/t/dokuwiki-rsync-with-folder-that-need-root-access/35015/3 "2025-01-26T20:02:33Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [February 25, 2025, 8:03pm UTC](https://forum.yunohost.org/t/dokuwiki-rsync-with-folder-that-need-root-access/35015/4 "2025-02-25T20:03:21Z")

</div>

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