Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devel0/nextcloud-list-shares
List nextcloud shares ( postgres db )
https://github.com/devel0/nextcloud-list-shares
nextcloud postgres shares
Last synced: 4 days ago
JSON representation
List nextcloud shares ( postgres db )
- Host: GitHub
- URL: https://github.com/devel0/nextcloud-list-shares
- Owner: devel0
- License: mit
- Created: 2024-06-22T12:00:40.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-24T18:00:51.000Z (6 months ago)
- Last Synced: 2024-10-31T17:44:53.072Z (about 2 months ago)
- Topics: nextcloud, postgres, shares
- Language: C#
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nextcloud-list-shares
![](./doc/shot.png)
- [Features](#features)
- [Quickstart](#quickstart)
- [Create release](#create-release)
- [Run release](#run-release)
- [How this project was built](#how-this-project-was-built)## Features
- nextcloud postgres backend db access ( readonly )
- list share with
- flag if the share is a link share
- user or group that access the share
- share permissions ( merged for user and usergroup )
- fullpath of shared item
- share by ( who created the share )## Quickstart
- replace `DBHOST`, `DBNAME`, `DBUSER`, `DBPASS` in the follow with your own
```sh
git clone [email protected]:devel0/nextcloud-list-shares.git
cd nextcloud-list-shares
dotnet user-secrets set "ConnectionStrings:Cloud" "Host=DBHOST; Database=DBNAME; Username=DBUSER; Password=DBPASS"
dotnet run
```- generated file will be in Desktop/shares.xlsx unless `--output=SOMEPATHFILENAME` specified
## Create release
- change `RUNTIMERID` with target platform: `linux-x64`, `win-x64`, `osx-x64`
```sh
dotnet publish -c Release --runtime RUNTIMERID --sc
```published files will be in `bin/Release/net8.0/RUNTIMERID/publish/` ( there is no need to install dotnet on target platform thanks to `--sc` option )
### Run release
- add `--output=SOMEPATHFILENAME` argument to generate the file elsewhere than `Desktop/shares.xlsx`
- linux
```sh
ConnectionStrings__Cloud="Host=DBHOST; Database=DBNAME; Username=DBUSER; Password=DBPASS" ./nextcloud-list-shares
```- windows (powershell)
```sh
dotnet publish -c Release --runtime win-x64 --sc
$Env:ConnectionStrings__Cloud="Host=DBHOST; Database=DBNAME; Username=DBUSER; Password=DBPASS"
```## How this project was built
```sh
dotnet new console -n nextcloud-list-shares
```