Bash script to sync backup server


#1

Steps to reproduce

  1. Run bash script as a cronjob to sync database and data between primary/backup server.

Expected behaviour
Tell us what should happen

Database and data should be synced to backup server, mysql should restart, and I should be able to log into owncloud.

Actual behaviour
Tell us what happens instead

Navigating to login screen results in blank white page. Manually restarting mysql fixes this issue. Service mysql restart is the last line of the bash script, so this shouldn't be required to manually enter.

Operating system: Ubuntu 14.04
Web server: Apache
Database: Mysql 5.5
PHP version:
ownCloud version (see ownCloud admin page): 9.1.4
Updated from an older ownCloud or fresh install: Fresh install


#2

I wonder how this should be related to ownCloud? Looks more like an issue in your deployment / backup way or an issue of mysql itself.

You might still be able to get the reason for this by checking your logfiles [1].

[1]