{"id":1322,"date":"2022-12-15T10:08:00","date_gmt":"2022-12-15T10:08:00","guid":{"rendered":"https:\/\/mklasen.com\/?p=1322"},"modified":"2022-12-15T10:08:19","modified_gmt":"2022-12-15T10:08:19","slug":"storing-private-data-with-ssh-on-wpengine-sites","status":"publish","type":"post","link":"https:\/\/mklasen.com\/storing-private-data-with-ssh-on-wpengine-sites\/","title":{"rendered":"Storing private data with SSH on WPEngine sites"},"content":{"rendered":"\n
I’ve been working with several clients hosted on WPEngine lately and whenever I start work on a site, the first step is usually Now, my go-to command is So, apparently, whenever you start an SSH session with WPEngine, a virtual environment is created, and only the data that exists in Well, there is ONE folder that is not publicly accessible that can be used for persistent storage. It’s the WPEngine did have an issue with it before, you can read about it here<\/a> and here<\/a> but this issue is now solved. Database credentials are stored here as well, so you should be fine!<\/p>\n\n\n\n Happy devvin’!<\/p>\n","protected":false},"excerpt":{"rendered":" I’ve been working with several clients hosted on WPEngine lately and whenever I start work on a site, the first step is usually rsyncing all data and running a wp db export with WP-CLI. Now, my go-to command is wp db export && mv *.sql ~\/_sql\/ and it worked. So the second step is an […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[1],"tags":[],"acf":[],"yoast_head":"\nrsync<\/code>ing all data and running a
wp db export <\/code>with WP-CLI.<\/p>\n\n\n\n
wp db export && mv *.sql ~\/_sql\/<\/code> and it worked. So the second step is an
scp host:_sql\/FILE.sql<\/code> but that suddenly failed.. What happened?<\/p>\n\n\n\n
\/home\/wpe-user\/sites\/SITE<\/code> is saved. So, all other operations, for example in the home directory, just vanish into the void.<\/p>\n\n\n\n
What’s the solution?<\/h2>\n\n\n\n
_wpeprivate <\/code>folder which you can find it
sites\/SITE<\/code>. Any data added here is kept in place, and will not be accessibly publicly.<\/p>\n\n\n\n