FEATURES:
- Disable/enable desire module to backup (database, application, user data)
- Choose how many backups needed, independently for each module
- Output to logfile
- Support nginx or apache web server
- Support postgresql, mariadb or mysql database type
- Auto rollback service in case of failure
USAGE:
- Change variable settings in the main script mainNcBackup.sh to suit your needs and environment
- Execute the main script
INSTALLATION:
- git clone https://github.com/aliefamzari/nextcloudBackupScripts.git
- cd nextcloudBackupScripts
- chmod +x *.sh
- Edit mainNcBackup.sh variables to your environment
- Execute ./mainNcBackup.sh
or
- wget https://github.com/aliefamzari/nextcloudBackupScripts/archive/master.zip
- unzip master.zip
- cd nextcloudBackupScripts
- chmod +x *.sh
- Edit mainNcBackup.sh variables to your environment
- Execute ./mainNcBackup.Sh
Note sudo need to be set to never ask password
NOT SUPPORTED:
- External data backup
*Feel free comment, use, distribute and modify. Code is not POSIX compliant.