nextcloud_information
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| nextcloud_information [2025/02/02 20:58] – mike | nextcloud_information [2025/12/08 09:36] (current) – mike | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ---- | ---- | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||
| - | === A high level example of interfacing with Nextcloud (docker container) === | ||
| - | ##Open terminal in container | ||
| - | docker exec -it nextcloud bash | ||
| - | | ||
| - | ##Turn on maintenance mode | ||
| - | sudo -u abc php7 / | ||
| - | | ||
| - | ##Backup current nextcloud install | ||
| - | mv / | ||
| - | | ||
| - | ##Grab newest nextcloud release and unpack it | ||
| - | wget https:// | ||
| - | tar -xvf latest.tar.bz2 -C /config/www | ||
| - | | ||
| - | ##Copy across old config.php from backup | ||
| - | cp / | ||
| - | | ||
| - | ##Now Restart docker container | ||
| - | exit | ||
| - | docker restart nextcloud | ||
| - | | ||
| - | ##Open terminal in container | ||
| - | docker exec -it nextcloud bash | ||
| - | | ||
| - | ##Perform upgrade | ||
| - | sudo -u abc php7 / | ||
| - | | ||
| - | ##Turn off maintenance mode | ||
| - | sudo -u abc php7 / | ||
| - | | ||
| - | ## Now Restart docker container | ||
| - | exit | ||
| - | docker restart nextcloud | ||
| - | |||
| - | === Upgrading Nextcloud running in a docker container: === | ||
| - | Login to the console of the docker host and execute: | ||
| - | docker exec -it <docker name> updater.phar | ||
| | | ||
| === Disable IPv6 in Nextcloud === | === Disable IPv6 in Nextcloud === | ||
| Line 44: | Line 7: | ||
| === Additions to Nextcloud config (/ | === Additions to Nextcloud config (/ | ||
| + | (Note: make sure to update the xxx.xxx.xxx.xxx in the code below to the IP of the proxy) | ||
| ' | ' | ||
| Line 54: | Line 18: | ||
| 1 => ' | 1 => ' | ||
| ), | ), | ||
| + | ' | ||
| ' | ' | ||
| array ( | array ( | ||
| Line 81: | Line 46: | ||
| Bounce nextcloud (docker restart nextcloud-app) after any/all config edits. | Bounce nextcloud (docker restart nextcloud-app) after any/all config edits. | ||
| + | |||
| + | === Bulk actions in Nextcloud === | ||
| + | In this example, we are deleting multiple users. | ||
| + | |||
| + | Create a text file listing the accounts to be deleted, one per line. | ||
| + | |||
| + | Execute the following command, referencing the just-created file: | ||
| + | for i in $(cat users_to_del.txt); | ||
| + | |||
| + | === Background image location === | ||
| + | Background images are stored in the **appdata/ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Older information that may no longer be relevant but is kept for historical value ==== | ||
| + | |||
| + | === A high level example of interfacing with Nextcloud (docker container) === | ||
| + | ##Open terminal in container | ||
| + | docker exec -it nextcloud bash | ||
| + | | ||
| + | ##Turn on maintenance mode | ||
| + | sudo -u abc php7 / | ||
| + | | ||
| + | ##Backup current nextcloud install | ||
| + | mv / | ||
| + | | ||
| + | ##Grab newest nextcloud release and unpack it | ||
| + | wget https:// | ||
| + | tar -xvf latest.tar.bz2 -C /config/www | ||
| + | | ||
| + | ##Copy across old config.php from backup | ||
| + | cp / | ||
| + | | ||
| + | ##Now Restart docker container | ||
| + | exit | ||
| + | docker restart nextcloud | ||
| + | | ||
| + | ##Open terminal in container | ||
| + | docker exec -it nextcloud bash | ||
| + | | ||
| + | ##Perform upgrade | ||
| + | sudo -u abc php7 / | ||
| + | | ||
| + | ##Turn off maintenance mode | ||
| + | sudo -u abc php7 / | ||
| + | | ||
| + | ## Now Restart docker container | ||
| + | exit | ||
| + | docker restart nextcloud | ||
| + | |||
| + | === Upgrading Nextcloud running in a docker container: === | ||
| + | Login to the console of the docker host and execute: | ||
| + | docker exec -it <docker name> updater.phar | ||
nextcloud_information.1738558725.txt.gz · Last modified: by mike
