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>`_
|
||||
|
||||
|
||||
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
|
||||
=================
|
||||
Documentation on migrating from Hubspot to CiviCRM.
|
||||
|
|
|
@ -9,7 +9,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Libre Developers Documentation 0\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"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: en\n"
|
||||
|
@ -162,76 +162,100 @@ msgid "`<https://civicrm.libre.is/wp-admin/plugins.php>`_"
|
|||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:165
|
||||
msgid "Hubspot Migration"
|
||||
msgid "Database Backup"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_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."
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:168
|
||||
#: ../../../_source/civicrm-libre-is.rst:225
|
||||
msgid "Data to migrate:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:170
|
||||
#: ../../../_source/civicrm-libre-is.rst:227
|
||||
msgid "Contacts."
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:173
|
||||
#: ../../../_source/civicrm-libre-is.rst:230
|
||||
msgid "Contacts Migration"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:174
|
||||
#: ../../../_source/civicrm-libre-is.rst:231
|
||||
msgid ""
|
||||
"Hubspot can export contacts in these formats, all of which should export "
|
||||
"identical data."
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:177
|
||||
#: ../../../_source/civicrm-libre-is.rst:234
|
||||
msgid "CSV."
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:178
|
||||
#: ../../../_source/civicrm-libre-is.rst:235
|
||||
msgid "XLS."
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:179
|
||||
#: ../../../_source/civicrm-libre-is.rst:236
|
||||
msgid "XLSX."
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:181
|
||||
#: ../../../_source/civicrm-libre-is.rst:238
|
||||
msgid "For \"Customize\" export, it has options:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:183
|
||||
#: ../../../_source/civicrm-libre-is.rst:240
|
||||
msgid "Include all email addresses."
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:184
|
||||
#: ../../../_source/civicrm-libre-is.rst:241
|
||||
msgid "Properties options."
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:185
|
||||
#: ../../../_source/civicrm-libre-is.rst:242
|
||||
msgid "Associations."
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:187
|
||||
#: ../../../_source/civicrm-libre-is.rst:244
|
||||
msgid "Use these options for the most complete export:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:189
|
||||
#: ../../../_source/civicrm-libre-is.rst:246
|
||||
msgid "Include all email addresses: Checked."
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:190
|
||||
#: ../../../_source/civicrm-libre-is.rst:247
|
||||
msgid "All properties and all associations on records: Selected."
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:191
|
||||
#: ../../../_source/civicrm-libre-is.rst:248
|
||||
msgid "Include all associated record in each association column: Selected."
|
||||
msgstr ""
|
||||
|
||||
#: ../../../_source/civicrm-libre-is.rst:193
|
||||
#: ../../../_source/civicrm-libre-is.rst:250
|
||||
msgid ""
|
||||
"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 "
|
||||
|
|
Loading…
Reference in a new issue