Answers.Body: <p>This question is impossible to answer definitively without knowing more about, say, your operating system, whether you have command line access, whether your WP and Civi databases are separate or one, etc.  I'll answer for what works for me.</p>
  
  <p>On a Linux machine, I would use <code>backupninja</code> to first back up MySQL using <code>mysqldump</code>.  My <a href="https://github.com/MegaphoneJon/backupninja_configs" rel="nofollow noreferrer">backupninja configurations</a> are public.</p>
  
  <p>Second, I configure a backupninja job using <code>rsync</code>, <code>rdiff-backup</code>, or <code>borgbackup</code> to back up the WordPress root (e.g. <code>/var/www/mysite</code>) along with the MySQL dump.  All three of those utilities can back up either locally or remotely.</p>
  
  <p>If you prefer shell scripts to backupninja, AGH Strategies posts their <a href="https://github.com/agh1/backupscripts" rel="nofollow noreferrer">backup script</a> on Github.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-28T05:37:09.880Z
Answers.Text: edited. not a linux user :( !
Answers.UserDisplayName: Parthibaraj Rajasekar
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-28T19:49:54.727Z
Answers.Text: @ParthibarajRajasekar This is a sysadmin question and not a CiviCRM question.  You may want to either a) ask in chat.civicrm.org, or b) search Stack Exchange and/or Google for Windows backup solutions that include MySQL databases.  If you back up the MySQL dump plus the WordPress root folder and all subfolders, you should be good.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-27T17:43:51.110Z
Answers.LastActivityDate: 2017-07-27T17:43:51.110Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I want to make a weekly/fortnight backup of CiviCRM running on Wordpress. Two things I need to do:</p>
  
  <ol>
  <li>Backup on same machine</li>
  <li>Replicate the database on another machine. </li>
  </ol>
  
  <p>Looking for simple steps to achieve both</p>
  
  <p>OS : Windows , Separate databases for Wordpress and CiviCRM</p>
  
Tags: <database><settings><backups>
Title: CiviCRM backup query
ThreadText: # CiviCRM backup query
  
  (Asked by: username_0 on 2017-07-26)
  
  I want to make a weekly/fortnight backup of CiviCRM running on Wordpress. Two things I need to do:
  
  1. Backup on same machine
  2. Replicate the database on another machine.
  
  Looking for simple steps to achieve both
  
  OS : Windows , Separate databases for Wordpress and CiviCRM
  
  **Tags:** database, settings, backups
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-07-27. Score: 1
  
  This question is impossible to answer definitively without knowing more about, say, your operating system, whether you have command line access, whether your WP and Civi databases are separate or one, etc. I'll answer for what works for me.
  
  On a Linux machine, I would use `backupninja` to first back up MySQL using `mysqldump`. My [backupninja configurations](https://github.com/MegaphoneJon/backupninja_configs) are public.
  
  Second, I configure a backupninja job using `rsync`, `rdiff-backup`, or `borgbackup` to back up the WordPress root (e.g. `/var/www/mysite`) along with the MySQL dump. All three of those utilities can back up either locally or remotely.
  
  If you prefer shell scripts to backupninja, AGH Strategies posts their [backup script](https://github.com/agh1/backupscripts) on Github.
  
  > **Comments:**
  > **username_0**: edited. not a linux user :( !  
  > **username_1**: @ParthibarajRajasekar This is a sysadmin question and not a CiviCRM question.  You may want to either a) ask in chat.civicrm.org, or b) search Stack Exchange and/or Google for Windows backup solutions that include MySQL databases.  If you back up the MySQL dump plus the WordPress root folder and all subfolders, you should be good.  
  
  ---
  
  