put configuration into separate file

This commit is contained in:
Ray Elliott 2020-09-09 11:54:46 +01:00
parent f1f3d31fbe
commit b2e95eb294
3 changed files with 10 additions and 16 deletions

View File

@ -0,0 +1,8 @@
remote_protocol='https'
remote_domain='remote.cloudwaysapps.com'
remote_ssh='user@remote.cloudwaysapps.com'
remote_wp_path='/home/remote.cloudwaysapps.com/aabbccddee/public_html'
local_protocol='http'
local_domain='local.local'
local_wp_path='/var/www/html/wordpress'

View File

@ -1,13 +1,6 @@
#!/bin/sh
remote_protocol='https'
remote_domain='wordpress-453075-1468300.cloudwaysapps.com'
remote_ssh='test123@wordpress-453075-1468300.cloudwaysapps.com'
remote_wp_path='/home/453075.cloudwaysapps.com/mhhusspndh/public_html'
local_protocol='http'
local_domain='thecampsitebible.home'
local_wp_path='/var/www/html/wordpress'
. ./config
rsync -azP "$local_wp_path/wp-content/" "$remote_ssh:$remote_wp_path/wp-content" --delete-before

View File

@ -1,13 +1,6 @@
#!/bin/sh
remote_protocol='https'
remote_domain='wordpress-453075-1468300.cloudwaysapps.com'
remote_ssh='test123@wordpress-453075-1468300.cloudwaysapps.com'
remote_wp_path='/home/453075.cloudwaysapps.com/mhhusspndh/public_html'
local_protocol='http'
local_domain='thecampsitebible.home'
local_wp_path='/var/www/html/wordpress'
. ./config
rsync -azP "$remote_ssh:$remote_wp_path/wp-content/" "$local_wp_path/wp-content" --delete-before