Dump db commands for civicrm
This commit is contained in:
parent
57218880f6
commit
0be117513f
|
@ -161,6 +161,63 @@ Activate the plugin, logging in as Wordpress admin user:
|
||||||
`<https://civicrm.libre.is/wp-admin/plugins.php>`_
|
`<https://civicrm.libre.is/wp-admin/plugins.php>`_
|
||||||
|
|
||||||
|
|
||||||
|
Database Backup
|
||||||
|
===============
|
||||||
|
HOWTO backup the database. Do this regularly and before major
|
||||||
|
operations, such as importing contact lists.
|
||||||
|
|
||||||
|
Scriptlet to back up all databases on system:
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BACKUPDIR=/var/lib/dbbackup
|
||||||
|
NOW=`date +%Y%m%d%H%M`
|
||||||
|
|
||||||
|
sudo mkdir -p $BACKUPDIR
|
||||||
|
sudo chown root:root $BACKUPDIR
|
||||||
|
sudo chmod og-rwx $BACKUPDIR
|
||||||
|
|
||||||
|
sudo touch $BACKUPDIR/db-dump-$NOW.sql
|
||||||
|
sudo chmod 400 $BACKUPDIR/db-dump-$NOW.sql
|
||||||
|
|
||||||
|
# Backup full DB
|
||||||
|
sudo nice mariadb-dump -p --all-databases -uroot --result-file=$BACKUPDIR/db-dump-$NOW.sql
|
||||||
|
|
||||||
|
# Compress it
|
||||||
|
sudo nice xz -9 -T4 -z $BACKUPDIR/db-dump-$NOW.sql
|
||||||
|
|
||||||
|
Sciptlet to backup wordpress database, which includes CiviCRM:
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BACKUPDIR=/var/lib/dbbackup
|
||||||
|
NOW=`date +%Y%m%d%H%M`
|
||||||
|
|
||||||
|
sudo mkdir -p $BACKUPDIR
|
||||||
|
sudo chown root:root $BACKUPDIR
|
||||||
|
sudo chmod og-rwx $BACKUPDIR
|
||||||
|
|
||||||
|
sudo touch $BACKUPDIR/db-wordpress-$NOW.sql
|
||||||
|
sudo chmod 400 $BACKUPDIR/db-wordpress-$NOW.sql
|
||||||
|
|
||||||
|
# Backup full DB
|
||||||
|
sudo nice mariadb-dump -p -uroot --result-file=$BACKUPDIR/db-wordpress-$NOW.sql wordpress
|
||||||
|
|
||||||
|
# Compress it
|
||||||
|
sudo nice xz -9 -T4 -z $BACKUPDIR/db-wordpress-$NOW.sql
|
||||||
|
|
||||||
|
To decompress the file, run a command like this, with "-k", if you
|
||||||
|
want to keep the compressed version:
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
|
||||||
|
xz -d -k db-wordpress-202409190643.sql.xz
|
||||||
|
|
||||||
|
|
||||||
Hubspot Migration
|
Hubspot Migration
|
||||||
=================
|
=================
|
||||||
Documentation on migrating from Hubspot to CiviCRM.
|
Documentation on migrating from Hubspot to CiviCRM.
|
||||||
|
|
|
@ -9,7 +9,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Libre Developers Documentation 0\n"
|
"Project-Id-Version: Libre Developers Documentation 0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2024-09-19 06:28-0600\n"
|
"POT-Creation-Date: 2024-09-19 06:46-0600\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language: en\n"
|
"Language: en\n"
|
||||||
|
@ -162,76 +162,100 @@ msgid "`<https://civicrm.libre.is/wp-admin/plugins.php>`_"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:165
|
#: ../../../_source/civicrm-libre-is.rst:165
|
||||||
msgid "Hubspot Migration"
|
msgid "Database Backup"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:166
|
#: ../../../_source/civicrm-libre-is.rst:166
|
||||||
|
msgid ""
|
||||||
|
"HOWTO backup the database. Do this regularly and before major operations, "
|
||||||
|
"such as importing contact lists."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../../_source/civicrm-libre-is.rst:169
|
||||||
|
msgid "Scriptlet to back up all databases on system:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../../_source/civicrm-libre-is.rst:191
|
||||||
|
msgid "Sciptlet to backup wordpress database, which includes CiviCRM:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../../_source/civicrm-libre-is.rst:213
|
||||||
|
msgid ""
|
||||||
|
"To decompress the file, run a command like this, with \"-k\", if you want to "
|
||||||
|
"keep the compressed version:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../../_source/civicrm-libre-is.rst:222
|
||||||
|
msgid "Hubspot Migration"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../../_source/civicrm-libre-is.rst:223
|
||||||
msgid "Documentation on migrating from Hubspot to CiviCRM."
|
msgid "Documentation on migrating from Hubspot to CiviCRM."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:168
|
#: ../../../_source/civicrm-libre-is.rst:225
|
||||||
msgid "Data to migrate:"
|
msgid "Data to migrate:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:170
|
#: ../../../_source/civicrm-libre-is.rst:227
|
||||||
msgid "Contacts."
|
msgid "Contacts."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:173
|
#: ../../../_source/civicrm-libre-is.rst:230
|
||||||
msgid "Contacts Migration"
|
msgid "Contacts Migration"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:174
|
#: ../../../_source/civicrm-libre-is.rst:231
|
||||||
msgid ""
|
msgid ""
|
||||||
"Hubspot can export contacts in these formats, all of which should export "
|
"Hubspot can export contacts in these formats, all of which should export "
|
||||||
"identical data."
|
"identical data."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:177
|
#: ../../../_source/civicrm-libre-is.rst:234
|
||||||
msgid "CSV."
|
msgid "CSV."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:178
|
#: ../../../_source/civicrm-libre-is.rst:235
|
||||||
msgid "XLS."
|
msgid "XLS."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:179
|
#: ../../../_source/civicrm-libre-is.rst:236
|
||||||
msgid "XLSX."
|
msgid "XLSX."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:181
|
#: ../../../_source/civicrm-libre-is.rst:238
|
||||||
msgid "For \"Customize\" export, it has options:"
|
msgid "For \"Customize\" export, it has options:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:183
|
#: ../../../_source/civicrm-libre-is.rst:240
|
||||||
msgid "Include all email addresses."
|
msgid "Include all email addresses."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:184
|
#: ../../../_source/civicrm-libre-is.rst:241
|
||||||
msgid "Properties options."
|
msgid "Properties options."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:185
|
#: ../../../_source/civicrm-libre-is.rst:242
|
||||||
msgid "Associations."
|
msgid "Associations."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:187
|
#: ../../../_source/civicrm-libre-is.rst:244
|
||||||
msgid "Use these options for the most complete export:"
|
msgid "Use these options for the most complete export:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:189
|
#: ../../../_source/civicrm-libre-is.rst:246
|
||||||
msgid "Include all email addresses: Checked."
|
msgid "Include all email addresses: Checked."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:190
|
#: ../../../_source/civicrm-libre-is.rst:247
|
||||||
msgid "All properties and all associations on records: Selected."
|
msgid "All properties and all associations on records: Selected."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:191
|
#: ../../../_source/civicrm-libre-is.rst:248
|
||||||
msgid "Include all associated record in each association column: Selected."
|
msgid "Include all associated record in each association column: Selected."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../../_source/civicrm-libre-is.rst:193
|
#: ../../../_source/civicrm-libre-is.rst:250
|
||||||
msgid ""
|
msgid ""
|
||||||
"Click \"Export\" and it will present a link to an \"Import and Export\" "
|
"Click \"Export\" and it will present a link to an \"Import and Export\" "
|
||||||
"page, where it will show the progress of the export. It will take ~20 "
|
"page, where it will show the progress of the export. It will take ~20 "
|
||||||
|
|
Loading…
Reference in a new issue