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 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
webserver synchronisation to process the incoming backup
file with a call to startkladde_sync_server.bsh
Requirements¶
Synopsis¶
startkladde_sync_master.bsh
The following envirionment variables, which may be defined inside the script, control the behaviour of the program:
-
LOCAL_SCP<path>¶ Path to scp command on local machine. Defaults to
/usr/bin/scp
-
BACKUP_DIR<path>¶ Directory in which to store backups on local machine. Defaults to
/home/user/backup.
-
BACKUP<path>¶ Path to the startkladde_backup.bsh script on the local machine. Defaults to
/home/user/bin/startkladde_backup.bsh
-
SERVER<user>@<server>¶ Username on remote server and URI or IP of the server. Defaults to user@server