![]() ![]() ![]() Even if the wp command is in your user’s $PATH it may not be in the context that Cron runs in, so you’ll want to use the absolute path to wp.Since we’ll be running this command via the system’s cron we’ll want to modify the command in two ways Run the command first to make sure it’s doing exactly what you want: $ wp migratedb profile 8 In this example, I’ve set up a profile that will pull the database and media files from my live server down to the development server on my local machine and have noted that it’s ID is 8. The first thing you’ll want to do is work out the command you’d like to schedule, or set up a migration profile in WP Migrate DB Pro’s Migration tab in your WordPress admin. While WP Migrate DB Pro doesn’t offer a built-in method for scheduling migrations, this is something that can be easily and reliably achieved using your system’s Cron and the WP Migrate DB Pro CLI Addon. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |