All Projects → DecaTec → Nextcloud Backup Restore

DecaTec / Nextcloud Backup Restore

Licence: mit
Moved to codeberg.org - https://codeberg.org/DecaTec/Nextcloud-Backup-Restore - Bash scripts for backup/restore of Nextcloud

Programming Languages

shell
77523 projects
bash
514 projects
script
160 projects

Projects that are alternatives of or similar to Nextcloud Backup Restore

Pitrery
PostgreSQL Point In Time Recovery made easy
Stars: ✭ 99 (-13.91%)
Mutual labels:  backup, restore
Helicopterizer
Backup and Restore for Docker Container!
Stars: ✭ 112 (-2.61%)
Mutual labels:  backup, restore
Pgbackrest
Reliable PostgreSQL Backup & Restore
Stars: ✭ 766 (+566.09%)
Mutual labels:  backup, restore
Conserve
[beta] robust portable backup tool in Rust
Stars: ✭ 107 (-6.96%)
Mutual labels:  backup, restore
Zmbackup
A reliable software written in Shell Script to help you in your daily task to backup and restore mails and accounts from Zimbra Open Source Email Platform. Project in deprecation process. Please help me with Waddles.
Stars: ✭ 103 (-10.43%)
Mutual labels:  backup, restore
Bareos
Main repository with the code for the libraries and daemons
Stars: ✭ 651 (+466.09%)
Mutual labels:  backup, restore
Etcd Backup Restore
Collection of components to backup and restore the Etcd of a Kubernetes cluster
Stars: ✭ 99 (-13.91%)
Mutual labels:  backup, restore
Reshifter
Kubernetes cluster state management
Stars: ✭ 292 (+153.91%)
Mutual labels:  backup, restore
Cv4pve Barc
Backup And Restore Ceph for Proxmox VE
Stars: ✭ 74 (-35.65%)
Mutual labels:  backup, restore
Backup
MySQL Database backup package for Laravel
Stars: ✭ 66 (-42.61%)
Mutual labels:  backup, restore
Pg probackup
Backup and recovery manager for PostgreSQL
Stars: ✭ 383 (+233.04%)
Mutual labels:  backup, restore
Bareos Webui
Bareos Web User Interface
Stars: ✭ 78 (-32.17%)
Mutual labels:  backup, restore
Gmvault
gmail backup software
Stars: ✭ 3,396 (+2853.04%)
Mutual labels:  backup, restore
Edizon
💡 A homebrew save management, editing tool and memory trainer for Horizon (Nintendo Switch)
Stars: ✭ 706 (+513.91%)
Mutual labels:  backup, restore
Firestore Backup Restore
NPM package for backup and restore Firebase Firestore
Stars: ✭ 307 (+166.96%)
Mutual labels:  backup, restore
Pghoard
PostgreSQL backup and restore service
Stars: ✭ 1,027 (+793.04%)
Mutual labels:  backup, restore
Node Firestore Import Export
Firestore data import and export
Stars: ✭ 271 (+135.65%)
Mutual labels:  backup, restore
Docker Webserver
WebServer (MariaDB, PHP-FPM, Nginx) composed from several separate containers linked together
Stars: ✭ 290 (+152.17%)
Mutual labels:  backup, restore
Packagesync
Sync sublime text packages & user settings across devices.
Stars: ✭ 63 (-45.22%)
Mutual labels:  backup, restore
Rdiffweb
A simplified backup management software for quick access to your archives through an efficient web interface.
Stars: ✭ 76 (-33.91%)
Mutual labels:  backup, restore

Archived, moved to Codeberg: https://codeberg.org/DecaTec/Nextcloud-Backup-Restore

Nextcloud-Backup-Restore

This repository contains two bash scripts for backup/restore of Nextcloud.

It is based on a Nextcloud installation using nginx and MariaDB (see the (German) tutorial Nextcloud auf Ubuntu Server 18.04 LTS mit nginx, MariaDB, PHP, Let’s Encrypt, Redis und Fail2ban).

General information

For a complete backup of any Nextcloud instance, you'll have to backup these items:

  • The Nextcloud file directory (usually /var/www/nextcloud)
  • The data directory of Nextcloud (it's recommended that this is not located in the web root, so e.g. /var/nextcloud_data)
  • The Nextcloud database
  • Maybe a local external storage mounted into Nextcloud

The scripts take care of these items to backup automatically.

Important:

  • After cloning or downloading the repository, you'll have to edit the scripts so that they represent your current Nextcloud installation (directories, users, etc.). All values which need to be customized are marked with TODO in the script's comments.
  • The scripts assume that Nextcloud's data directory is not a subdirectory of the Nextcloud installation (file directory). The general recommendation is that the data directory should not be located somewhere in the web folder of your webserver (usually /var/www/), but in a different folder (e.g. /var/nextcloud_data). For more information, see here.
  • However, if your data directory is located under the Nextcloud file directory, you'll have to change the scripts so that the data directory is not part of the backup/restore (otherwise, it would be copied twice).
  • The scripts only backup the Nextcloud data directory and can backup a local external storage mounted into Nextcloud. If you have any other external storage mounted in Nextcloud (e.g. FTP), these files have to be handled separately.
  • The scripts assume that you are using MySQL/MariaDB as database for Nextcloud. However, it also supports PostreSQL databases. In this case you have to uncomment the parts of backing up/restoring the database.
  • You should have enabled 4 byte support (see Nextcloud Administration Manual) on your Nextcloud database. Otherwise, when you have not enabled 4 byte support, you have to edit the restore script, so that the database is not created with 4 byte support enabled.

Backup

In order to create a backup, simply call the script NextcloudBackup.sh on your Nextcloud machine. If this script is called without parameter, the backup is saved in a directory with the current time stamp in your main backup directory: As an example, this would be /media/hdd/nextcloud_backup/20170910_132703. The backup script can also be called with a parameter specifiying the main backup directory, e.g. ./NextcloudBackup.sh /media/hdd/nextcloud_backup. In this case, the directory specified will be used as main backup directory.

Restore

For restore, just call NextcloudRestore.sh. This script expects at least one parameter specifying the name of the backup to be restored. In our example, this would be 20170910_132703 (the time stamp of the backup created before). The full command for a restore would be ./NextcloudRestore.sh 20170910_132703. You can also specify the main backup directory with a second parameter, e.g. ./NextcloudRestore.sh 20170910_132703 /media/hdd/nextcloud_backup.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].