Skip to content

PHP script to migrate all shares to nextcloud circles into single user shares.

License

Notifications You must be signed in to change notification settings

verdigado/nc-share-tools

Repository files navigation

Nextcloud Share Tools

Supported commands:

  • Migrate Circle Shares: PHP script to migrate all shares to nextcloud circles, which get replaced by shares to the individual circle members. The script writes all migrated shares into CSV files.
  • Create Calendar Shares: Share all calendars to a single user

CSV Export

Setup

Create .env.local file and set database connection params.

cp .env .env.local

Usage

  • List all commands
php app.php
  • Run migration
php app.php migrate

Development

Install all dependencies including dev dependencies:

composer i

Tests

Install first all dependencies like in the section before. Also make sure to set up a mysql database. This is not included in the test setup. Then run all tests:

vendor/bin/phpunit tests

Deployment

Skip dev dependencies during installation:

composer i --no-dev

About

PHP script to migrate all shares to nextcloud circles into single user shares.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages