Nextcloud server
curl --request GET --url \
'https://cloud.moewe-altonah.de/ocs/v2.php/cloud/capabilities?format=json' \
--header 'content-type: application/json' \
--header 'ocs-apirequest: true' --netrc | jq .
NC server Administration
occ cli
cd /var/www/owncloud/
sudo -u openproject php occ --help
Show available commands:
sudo -u openproject php occ list
Status:
sudo -u openproject php occ status
sudo -u openproject php occ files:scan --path='files/'
Update app:
sudo -u www-data php ./occ app:update news --allow-unstable
Update app to non-stable alpha/beta version:
sudo -u www-data php ./occ app:update news --allow-unstable
Backup
mariadb
https://doc.owncloud.org/server/10.0/admin_manual/maintenance/backup.html
/var/lib/owncloud-data
/var/www/owncloud
- DB:
mysqldump --single-transaction DB2485828 > /var/backups/mysql-owncloud.9.1.4._$(date +"%Y%m%d").bak