Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-08 08:57:07

goncourt
Member
From: Dortmund/Germany
Registered: 2005-03-27
Posts: 24
Website

What about an import function txp to txp?

To import an existing txp-database from another server could be useful when someone wants to prepare a change of his provider – or to mirror the db in a backup.

Sure, to export a complete db is not that difficult – even with my limited mysql-knowledges I’ve already done it in a rude way, but a more automatic (and save) way over the admin’s tab could simplify this a lot.

Offline

#2 2007-07-08 09:02:41

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: What about an import function txp to txp?

It’s more of a mysql job. But I think a plugin could do the trick, and I’m pretty sure at least one plugin exist for this.

But you may want to be more precise. Important/export imply [of content], meaning preferences, options, maybe even authors, aren’t exported and imported. Is that what you are looking for?

Last edited by Jeremie (2007-07-08 09:03:45)

Offline

#3 2007-07-08 09:17:23

goncourt
Member
From: Dortmund/Germany
Registered: 2005-03-27
Posts: 24
Website

Re: What about an import function txp to txp?

Yes, even with the authors, right.

In my concrete case: I want to move an existing txp-installation with all its content to another server. To install there another txp-instance and import all the contents from the old one seems to be a possible way.

[Sure this is more than a little mysql job – therefore I’d like to have a safer method to do this ;)]

Offline

#4 2007-07-08 10:48:06

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: What about an import function txp to txp?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2007-07-08 20:51:06

goncourt
Member
From: Dortmund/Germany
Registered: 2005-03-27
Posts: 24
Website

Re: What about an import function txp to txp?

That looks nice. Thanks!

Offline

#6 2007-07-08 23:08:52

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: What about an import function txp to txp?

colak,
with Rob’s plugin, do you run mysql import queries? I never knew how to do that?

Matthew


Offline

#7 2007-07-09 06:56:43

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: What about an import function txp to txp?

hi matthew
You can run raw mysql queries but it also has an interface where you can backup your db (mysql dump) and then import it back on again.
Just go to Extensions> db backup. The interface is very user friendly.
Having said that, it doesn’t seem to work for me on txd but I do have the plugin installed to repair table overheads.

Last edited by colak (2007-07-09 06:57:39)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#8 2007-07-09 12:49:10

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: What about an import function txp to txp?

ahh, right, I guess I knew that, just was looking for a way to avoid using an ftp client to get the previously dumped sql to a point where it can be imported (I assume it needs to be in the place where rss_a.d. dumps the other backups.)

Matthew


Offline

#9 2007-07-09 19:51:15

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

Re: What about an import function txp to txp?

ma_s: hmm, import queries manually or importing the backup from another system? I’m moving one/two installations tomorrow and could try almost every scenario. (:


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

#10 2007-07-09 19:56:38

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: What about an import function txp to txp?

anoke,
I’d use ftp and phpmyadmin for your purposes.


Offline

#11 2007-07-10 05:23:06

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

Re: What about an import function txp to txp?

I sometimes use files/ for dumps. I can load them from the file tab then. BTW, you don’t want to download .sql from admin manager. I mean – the TXP admin footer is added to every dump here (gzipped is fine). As those dumps are ok as files on server, scp/ftp is best tool for moving dumps.

Why I’m currently interested in this is because I have to combine two dbs of articles and separate one section to a new TXP installation. What I quickly looked at it, dumps aren’t the way of doing this. Which brings us back to thread’s first question: import.


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

#12 2007-07-10 15:20:00

saccade
Plugin Author
From: Neubeuern, Germany
Registered: 2004-11-05
Posts: 521

Re: What about an import function txp to txp?

I’d like to have a special import for articles.

The following scenario: There is a common event-database, which contains basic event data for my clients, spreading their data over different sites.
They can include it’s output in their own websites by a link and iFrame (or so – the output is defined by the database and it generates three nested tables).

Now I do websites for them in textpattern using articles for an event calendar. Each article can contain more than the event-database. And the articles are integrated into the whole site structure. So I don’t want to have only an iFrame and output within my sites.
Now it’s not very friendly to enter those data twice.

For an easier input (and my clients wanting to take both services) I’d like to take an exported file (the event-database provides that) with information about events into txp:
Each event should generate a new article and put its information in the right places. Then my clients could continue work within txp and use its benefits.
But it should be possible to “update”, means: compare, if an event is already present in txp.
The events come with an ID, so it could be tested if they have already been imported before.

Is there any plugin or idea or concept that will take lists, files or data into articles in txp?

Offline

Board footer

Powered by FluxBB