Some useful commands for Nextcloud!
The following command will send a file to Nextcloud using the linux command line using curl.
curl -u USERNAME:PASSWORD -T /path/to/file https://my.nextcloud.com/remote.php/dav/files/USERNAME/
You could also scp the files to the destination and issue the following command:
sudo -u www-user php occ files:scan <user_ID>
Clean up users trash bins:
sudo -u www-user php occ trashbin:cleanup –all-users (or specify a user by their ID)