Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Rsync commands.

...

You can use these instructions for Manually transferring drupal files with rsync.

You can ssh into the aquaia server to find the remote files directory, which should be something like: /mnt/gfs/home/SITENAME/ENV/sites/default/files, and rsync all of the files

  • Protect default drupal files
  • Protect config files from download

...

down.

Code Block
rsync -razv --delete --exclude=css --exclude=*_cache --exclude=js --exclude=googleanalytics --exclude=xmlsitemap --exclude=backup_migrate --exclude=styles SITENAME.ENV@ded-XXXX.ENV.hosting.acquia.com:/mnt/gfs/home/SITENAME/ENV/sites/default/files/ /path/to/local/files/

NOTE: You may need to rsync directly from the prod site. It seems that when you move files between prod and dev in the acquia control panel, it doesn't delete files from dev, leading to a bunch of orphans. Or you could delete the 

Then you upload the files to the pantheon dev site:

Code Block
rsync -razv /path/to/local/files/ --ipv4 -e 'ssh -p 2222' dev.XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX@appserver.dev.XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.drush.in:files

NOTE: The rsync process to pantheon is fairly slow and prone to disconnecting, so you can use the --append flag to just upload files that are not already there, so you are not transferring the same ones again and again.

NOTE: The pantheon storage doesn't actually seem to preserve times when rsyncing, so if you are rsyncing against a previously uploaded files directory, you should use use --size-only flag to ignore the dates and see what changes based on file size.

Set up config directory

Since we are using a nested web root, the config directory can be in the root code directory, and not in the pantheon default of sites/default/config.


Protect default drupal files?


Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@23154b
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("php","acquia","pantheon","drush","configuration") and type = "page" and space = "KALA"
labelsacquia pantheon configuration drush php

...