bartfaik04 a2eefe411c
All checks were successful
CI / build (push) Successful in 10s
CI / release (push) Successful in 8s
Merge pull request 'Configuration file and CI' (#4) from configuration into main
Reviewed-on: #4
2025-06-07 15:33:05 +02:00
2025-06-07 15:29:50 +02:00
2025-06-07 11:39:51 +02:00
2025-06-07 11:39:51 +02:00
2025-06-02 13:02:52 +02:00
2025-06-07 15:05:05 +02:00

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
Name Required Description
NEXTCLOUD_CONTAINER_NAME Yes The nextcloud's docker container name
NEXTCLOUD_USERS No Usernames separated with spaces
NEXTCLOUD_GROUPFOLDER_IDS No Groupfolder ids separated with spaces (only the number)

Example 1:

NEXTCLOUD_CONTAINER_NAME=nextcloud

Example 2: (See configs/ncsambawatcher.config.default)

  1. Run the init.sh script
  2. 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
Description
A Nextcloud-Samba File scanner system
Readme 77 KiB
Release v2.0 Latest
2025-06-07 15:41:44 +02:00
Languages
C++ 91.4%
Makefile 6%
Shell 2.6%