Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-07-01 16:22:34

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

4.2 What's in the database?

Under version 4.2, what items are now included in the MySQL database? (you’ll note my ignorance by the very way the question is asked)
  1. Forms?
  2. Sections?
  3. Pages/Templates?
  4. Comments?
  5. Articles?
  6. Images?
  7. Stylesheet(s)?
  8. Plugins?
  9. RSS/Atom?
  10. Other stuff?

If I do a backup or download of the MySQL database from my host to my local PC, what else must I copy in order to have all the pieces of a Textpattern weblog/website? (also, if this type of question is answered specifically for version 4.2 somewhere, please let me know where)

Thanks.


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#2 2010-07-01 16:32:09

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,942
Website GitHub

Re: 4.2 What's in the database?

All of the above are stored (with the exception of RSS/Atom which is generated on the fly) and images/files which hold references to the files on the file system.

As well as the database you’ll need (at a minimum) the /images and /files directories. It’s probably best to FTP an entire copy of the root node (the one containing /image, /files, /textpattern, index.php, .htaccess, and so on) down to your local machine. If you want to work offline you may need to change a few config settings in config.php and about 3 preferences in the txp_prefs table (the paths to stuff).

Hope that helps.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2010-07-01 16:43:41

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: 4.2 What's in the database?

Hi again, apart from the images and files folders, everything is stored into the database.
(‘references’ to the images and files are stored into the DB as well)

There is an entry on backing up in the faq and an entry in textbook

I have never read those docs, so I hope they’re good :-)

I usually dump the database (using phpmyadmin or rss_admin_db_manager), copy the /images & /files folder and the /textpattern folder (or at least /textpattern/config.php).

edit: seems like stef won this race, but i’ll be back, mwuhahaaaa

Last edited by JanDW (2010-07-01 16:45:13)


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

#4 2010-07-01 17:07:34

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: 4.2 What's in the database?

Thanks to both of you. That’s a big help and confirms my fuzzy recollections. I’m often unsure whether something I’m reading about Textpattern is still true for the latest version.

I appreciate the help.


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

Board footer

Powered by FluxBB