User Tools

Site Tools


backup-next

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
backup-next [2020/10/21 23:32] gwsadminbackup-next [2023/05/17 22:52] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== How to backup Nextcloud ======
 +
 +  * Put  Nextcloud into Maintenance mode by adding this line in config.php which can be found in your nextcloud web directory.
 +
 +<code bash>
 +<?php
 +
 + "maintenance" => true,
 +
 +</code>
 +  * Backup folder using rsync
 +
 +<code bash>
 +sudo rsync -Aavx /where/your/web/data/is/nextcloud-data /media/whereyourbackupdriveis/nextcloud-dirbkp_`date +"%Y%m%d"`/
 +
 +</code>
 +
 +  * Backup your dataase by using PHPmyadmin how to import/export can be [[:phpmyadmin-import-export|found here]]
 +