capruro / snap_nextcloud_backup

A bash script to easly backup your Nextcloud Snap configuration and Data

Home Page:https://www.capruro.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backup your Nextcloud Snap instance

A bash script to easly backup your Nextcloud Snap configuration and Data.

The script comes from the necessity to regurlarly schedule a backup for nextcloud.
It use the utility provided by Nextcloud to backup the apps, database and configuration.
In addition it use rsync for an incremental data backup, instead of copy everything by scratch every time.

How to use it

First you need to run the firstrun.sh script, choosing your data directory:
/var/snap/nextcloud/common #by default

And your destination directory:
/path/of/nextcloud/backup (you would choose a path of a secondary disk mounted in your system)

You will also be asked how many backups of yours snap configuration want to keep

After you set up the variables you are good to run:
sudo snap_nextcloud_backup.sh

If everything goes well you can schedule it on crontab.
Remeber, only the apps, database and configuration of your snap will have a snapshot. Your data will be synced using incremental backup from the source to the destination folder. Keep this in mind when scheduling the backup script.

About

A bash script to easly backup your Nextcloud Snap configuration and Data

https://www.capruro.com


Languages

Language:Shell 100.0%