Files
nextcloud-samba-sync/README.md
bartfaik04 1b44dd10db
All checks were successful
CI / build (push) Successful in 11s
CI / release (push) Has been skipped
Update readme
2025-06-07 15:05:05 +02:00

58 lines
1.5 KiB
Markdown

# Nextcloud-Samba Sync
## Pre installation
- Install `samba` and `vfs-modules`
```
sudo apt update
sudo apt install samba samba-vfs-modules
```
- Create shares. The example is in `configs` folder
## Installation
1. Download a `ncsambawatcher.zip` file from a release above 2.0
2. Extract somewhere on your server (I recommend your user folder)
3. Make sure the samba configuration file is correct (See `configs/smb.24.04.conf`)
4. Configurate the `ncsambawatcher.config` file
<table>
<thead>
<tr>
<td>Name</td>
<td>Required</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td><code>NEXTCLOUD_CONTAINER_NAME</code></td>
<td>Yes</td>
<td>The nextcloud's docker container name</td>
</tr>
<tr>
<td><code>NEXTCLOUD_USERS</code></td>
<td>No</td>
<td>Usernames separated with spaces</td>
</tr>
<tr>
<td><code>NEXTCLOUD_GROUPFOLDER_IDS</code></td>
<td>No</td>
<td>Groupfolder ids separated with spaces (only the number)</td>
</tr>
</tbody>
</table>
Example 1:
```
NEXTCLOUD_CONTAINER_NAME=nextcloud
```
Example 2: (See `configs/ncsambawatcher.config.default`)
5. Run the `init.sh` script
6. You're done :)
## Notes
- You don't need to add users and groupfolders to the configfile because the program add automaticly from the logfile
- For a user (not groupfolder): The username and the samba share name **MUST BE THE SAME**