startkladde_sync_master.bsh =========================== A bash script which synchronises the master database with a database on a webserver. The script performs the following tasks: #. Execute :doc:`startkladde_backup.bsh ` on the local machine (*master*) to create a backup file. #. Send the backup file to the remote host (*server*) via scp. The server is expected to be configured as described in the article :doc:`webserver synchronisation ` to process the incoming backup file with a call to :doc:`startkladde_sync_server.bsh ` Requirements ------------ Synopsis -------- .. code-block:: bash startkladde_sync_master.bsh The following envirionment variables, which may be defined inside the script, control the behaviour of the program: .. program:: startkladde_sync_master.bsh .. option:: LOCAL_SCP Path to scp command on local machine. Defaults to :file:`/usr/bin/scp` .. option:: BACKUP_DIR Directory in which to store backups on local machine. Defaults to :file:`/home/user/backup`. .. option:: BACKUP Path to the :doc:`startkladde_backup.bsh ` script on the local machine. Defaults to :file:`/home/user/bin/startkladde_backup.bsh` .. option:: SERVER @ Username on remote server and URI or IP of the server. Defaults to **user@server**