Jump to content

NextCloud:Disable server-side-encryption: Difference between revisions

From Wiki
No edit summary
No edit summary
 
Line 6: Line 6:
* Change to the Nextcloud directory with the command  
* Change to the Nextcloud directory with the command  


<syntaxhighlight lang="shell">
cd /var/www/html/nextcloud
cd /var/www/html/nextcloud
</syntaxhighlight>


* Switch the Nextcloud maintenance mode to on with the command  
* Switch the Nextcloud maintenance mode to on with the command  


<syntaxhighlight lang="shell">
sudo -u www-data php occ maintenance:mode --on
sudo -u www-data php occ maintenance:mode --on
</syntaxhighlight>


* Disable encryption with the command  
* Disable encryption with the command  


<syntaxhighlight lang="shell">
sudo -u www-data php occ encryption:disable
sudo -u www-data php occ encryption:disable
</syntaxhighlight>


* Turn off maintenance mode with the command
* Turn off maintenance mode with the command


<syntaxhighlight lang="shell">
sudo -u www-data php occ maintenance:mode --off
sudo -u www-data php occ maintenance:mode --off
</syntaxhighlight>


== Source ==
== Source ==

Latest revision as of 18:30, 30 November 2025

If you need to disable encryption, there’s only one way to do so. Before you do, make certain you have backups of all the files_encrypted files for all users and the system.

Here are the steps to disable encryption.

  • Open a terminal.
  • Change to the Nextcloud directory with the command
cd /var/www/html/nextcloud
  • Switch the Nextcloud maintenance mode to on with the command
sudo -u www-data php occ maintenance:mode --on
  • Disable encryption with the command
sudo -u www-data php occ encryption:disable
  • Turn off maintenance mode with the command
sudo -u www-data php occ maintenance:mode --off

Source