|Asif Bacchus 0fcab85da9||1 year ago|
|etc||1 year ago|
|seafileBackup||1 year ago|
|.gitattributes||1 year ago|
|.gitignore||1 year ago|
|LICENSE||1 year ago|
|README.md||1 year ago|
Simple POSIX-compliant script to backup a bare-metal Seafile installation using borgbackup to a remote SSH-capable storage system. I strongly suggest using rsync.net since they are very reliable, fast and even have special pricing for people using borgbackup/attic (details here).
THIS SCRIPT USES BORG (borgbackup) SO PLEASE ENSURE THAT IS INSTALLED CORRECTLY BEFORE TRYING TO USE THIS SCRIPT!
This readme is an overview of the script. For detailed instructions on how the script works, what it does and it's various options, please read the wiki! I've tried to annotate the files as best I could with many many comments, but seriously, reading the wiki if you're stuck is the best approach since I try to go over everything step-by-step.
This script has NO mandatory parameters. If no parameters are specified, it will proceed using defaults which normally align with the recommended Seafile installation defaults. That being said, it is impossible to determine defaults for things like your backup-server settings, so please make sure you customize the seafbackup.details file with appropriate details!
By default, the script will dump Seafile SQL databases and back them up along with your entire Seafile program and data directories. You can add additional files to be backed up by adding paths to xtraLocations.borg.
Simply clone this repo to the desired location. I recommend somewhere simple like ROOT's home directory so any sensitive information is restricted to the root user by default.
cd /root sudo git clone https://git.asifbacchus.app/asif/seafileBackup.git
./seafbackup.sh [parameters] # display abbreviated help ./seafbackup.sh --help
Please open this file in a text editor and follow the comments to fill in the parameters with the correct values for your environment and your backup server.
I hope this makes backing up your Seafile server easier and removes one more mundane administrative task from your schedule :-) If you have any comments, questions, concerns, suggestions for improvements or notice any bugs, please file an issue in this repo!
For more scripts and solutions like this, check out my blog at My Techie-Thoughts. Thanks!