Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
9d9e3551
Commit
9d9e3551
authored
Apr 11, 2013
by
anarcat
Browse files
Issue
#1812338
by helmo: Refactor sync back.
parent
5b130131
Changes
2
Hide whitespace changes
Inline
Side-by-side
platform/backup.provision.inc
View file @
9d9e3551
...
...
@@ -59,12 +59,7 @@ function drush_provision_drupal_provision_backup() {
// synch all filesystem changes back from the remote server.
d
()
->
service
(
'http'
)
->
fetch
(
d
()
->
site_path
.
'/files/'
);
d
()
->
service
(
'http'
)
->
fetch
(
d
()
->
site_path
.
'/private/'
);
d
()
->
service
(
'http'
)
->
fetch
(
d
()
->
site_path
.
'/modules/'
);
d
()
->
service
(
'http'
)
->
fetch
(
d
()
->
site_path
.
'/themes/'
);
d
()
->
service
(
'http'
)
->
fetch
(
d
()
->
site_path
.
'/libraries/'
);
d
()
->
service
(
'http'
)
->
fetch
(
d
()
->
site_path
.
'/local.settings.php'
);
provision_drupal_sync_site_back
();
// Check if we are currently cloaking credentials
$cloaked
=
d
()
->
service
(
'http'
)
->
cloaked_db_creds
();
...
...
platform/provision_drupal.drush.inc
View file @
9d9e3551
...
...
@@ -107,6 +107,22 @@ function provision_drupal_sync_site() {
}
}
/**
* Sync the current Drupal site BACK from a slave. Call before
* running operations that need files where the slave is authoritative.
*
* E.g. before a backup is made.
*/
function
provision_drupal_sync_site_back
()
{
// synch filesystem changes back from the remote server.
d
()
->
service
(
'http'
)
->
fetch
(
d
()
->
site_path
.
'/files/'
);
d
()
->
service
(
'http'
)
->
fetch
(
d
()
->
site_path
.
'/private/'
);
d
()
->
service
(
'http'
)
->
fetch
(
d
()
->
site_path
.
'/modules/'
);
d
()
->
service
(
'http'
)
->
fetch
(
d
()
->
site_path
.
'/themes/'
);
d
()
->
service
(
'http'
)
->
fetch
(
d
()
->
site_path
.
'/libraries/'
);
d
()
->
service
(
'http'
)
->
fetch
(
d
()
->
site_path
.
'/local.settings.php'
);
}
/**
* Generate a settings file for the site.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment