Skip to content

capruro/snap_nextcloud_backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages