|
@@ -39,7 +39,7 @@ MY_BLOG_TITLE="My Blog"
|
39
|
39
|
MY_BLOG_SUBTITLE="Another ${PROJECT_NAME} Blog"
|
40
|
40
|
|
41
|
41
|
function reconfigure_blog {
|
42
|
|
- echo -n ''
|
|
42
|
+ echo -n ''
|
43
|
43
|
}
|
44
|
44
|
|
45
|
45
|
function upgrade_blog {
|
|
@@ -121,7 +121,18 @@ function restore_local_blog {
|
121
|
121
|
}
|
122
|
122
|
|
123
|
123
|
function backup_remote_blog {
|
124
|
|
- echo -n ''
|
|
124
|
+ if grep -q "Blog domain" $COMPLETION_FILE; then
|
|
125
|
+ FULLBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Blog domain" | awk -F ':' '{print $2}')
|
|
126
|
+ temp_backup_dir=/var/www/${FULLBLOG_DOMAIN_NAME}/htdocs
|
|
127
|
+ if [ -d $temp_backup_dir ]; then
|
|
128
|
+ echo $"Backing up blog"
|
|
129
|
+ backup_directory_to_friend $temp_backup_dir blog
|
|
130
|
+ echo $"Backup of blog complete"
|
|
131
|
+ else
|
|
132
|
+ echo $"Blog domain specified but not found in $temp_backup_dir"
|
|
133
|
+ exit 2578
|
|
134
|
+ fi
|
|
135
|
+ fi
|
125
|
136
|
}
|
126
|
137
|
|
127
|
138
|
function restore_remote_blog {
|