Simplest backup procedure

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
herbshirt
Forum Members
Forum Members
Posts: 145
Joined: Thu Jul 26, 2007 3:47 am

Simplest backup procedure

Post by herbshirt »

Yep I've done the search but it all looks a little complicated for someone like me.

I'm wondering what the simplest way to backup my cms ms site would be. I'm guessing an FTP download of the entire site??

OR is there something even simpler?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Simplest backup procedure

Post by calguy1000 »

1.1    Do a mysqldump of the database to a file local to your install
1.2    ftp (or better) Absolutely every file from your remote install to

the restore procedure is:

2.1.  FTP all the files up to the remote host
2.2.  Create a database with the same name, and access privileges so that the
        dump created from step 1.1 above will just import
2.3  remove all files from /tmp /tmp/cache and /tmp/templates_c
2.4  Restore the database from the mysqldump created in 1.1
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Pierre M.

Re: Simplest backup procedure

Post by Pierre M. »

What about making this thread sticky ?

It is very very very good because there is the restore/moving procedure too :-)

Pierre M.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Simplest backup procedure

Post by Dr.CSS »

Database Backup Module is still the best! if it only worked in 1.1 and up... :(

just my 0.002 $usd....
alby

Re: Simplest backup procedure

Post by alby »

mark wrote: Database Backup Module is still the best! if it only worked in 1.1 and up... :(
Have you try Archiver (check in SVN because one file has a problem)?

Alby
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Simplest backup procedure

Post by Dr.CSS »

With the databasebackup module...
I can develop a site on my server...
when you like it I run the backup mod. then download the site folders add the install folder back into it zip it up send it to you...
you FTP it up to your site run install like a new CMSMS install...
then you go to backup mod. run restore and you have the exact site I built for you page structure and all...
and I have no access to it because you installed it fresh...

I have a site I'm setting up now and it has a ton of pages so I had to make a lot of empty pages to make sure the menus worked now that it all works I can only give them the template, which will only export/import one menu template and this has three custom menu templates, so I have to give them these separately, and we have to recreate the page structure and news items and GCB upload all the images yadda yadda ya

All the images in templates work, all GCB work all, the news items are there, everything in calendar is set, whatever you wanted...

Sorry, I just feel very strongly about this and I sure miss the little fella  :'(...

How much it cost to get fixed?...  huh... I pay...

see waditellya... http://forum.cmsmadesimple.org/index.ph ... 665.0.html
Last edited by Anonymous on Thu Aug 30, 2007 9:42 pm, edited 1 time in total.
herbshirt
Forum Members
Forum Members
Posts: 145
Joined: Thu Jul 26, 2007 3:47 am

Re: Simplest backup procedure

Post by herbshirt »

Call me dumbass but... what is 'mysqldump'?

Do you mean download the mysql d/b?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Simplest backup procedure

Post by tsw »

18:18 cmsinfo: mysqldump?
18:18 somebody said mysqldump was the way to get my database "dumped" to a file.
                usage "mysqldump -uUSERNAME -p DATABASENAME > FILENAME" (it will ask you for a
                password). For more information and all optional parameters say "man mysqldump"
alby

Re: Simplest backup procedure

Post by alby »

mark wrote: With the databasebackup module...
I can develop a site on my server...

.........................

How much it cost to get fixed?...  huh... I pay...
One beer?  ::)

Untested!

EDIT: I tested in deep and there are still problems. Sorry

Alby
Last edited by alby on Tue Sep 18, 2007 7:16 am, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Simplest backup procedure

Post by calguy1000 »

The DB Backup module requires adodb (the full version) not the adodb_lite that we converted to in the 0.13 days
that's why it's not working.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
alby

Re: Simplest backup procedure

Post by alby »

calguy1000 wrote: The DB Backup module requires adodb (the full version) not the adodb_lite that we converted to in the 0.13 days
that's why it's not working.
Infact I have substitute "MetaTables" and "MetaColumns" with sql: "SHOW TABLES" and "SHOW COLUMNS FROM $tables"
with MysQL is not a problem with other I don't sure

Alby
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Simplest backup procedure

Post by calguy1000 »

yep, it'll work for mysql users, but won't work for postgres users. 
The other drawback is you have to maintain patches to yet another package (adodb_lite).

I have done similar things with sitepusher.... it currently only works with mysql.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
alby

Re: Simplest backup procedure

Post by alby »

calguy1000 wrote: yep, it'll work for mysql users, but won't work for postgres users. 
The other drawback is you have to maintain patches to yet another package (adodb_lite).
I don't use Backup module, it's a favor for mark (many thank for a reply my PM in April :D) and if someone uses this.
In module help there is a warning for use this module with MySQL only.
I have found this for tables (but I don't have Postgresql for try):
MySQL variant:
SHOW TABLES

PostgreSQL variant:
SELECT table_name FROM information_schema.tables WHERE table_schema = 'public';
Although the output does not exactly match what comes from MySQL, it does list every public table and nothing else on the lines (but it produces some header and footer information).


MySQL variant:
SHOW TABLES LIKE 'foo'

And PostgreSQL variant:
SELECT table_name FROM information_schema.tables WHERE table_schema = 'public' AND table_name LIKE 'foo'

And this for columns:
foreach table
-------------
mysql: show tables

postgres: select table_name from information_schema.tables where table_schema = 'public')

foreach column
--------------
mysql: show columns from '%s'

postgres: select column_name from information_schema.columns where table_name = '%s')

Maybe this can help you

Alby
Last edited by alby on Sun Sep 09, 2007 11:50 am, edited 1 time in total.
Hare
Forum Members
Forum Members
Posts: 87
Joined: Sat Jun 03, 2006 11:46 am

Re: Simplest backup procedure

Post by Hare »

alby wrote: One beer?  ::)

Untested! Try this attach

Alby
Doesn't work. Doesn't output any actual db content, just the table names etc. I just tried it and it erased my whole site during backup restore :)

Of course this was on a dev server so no harm done.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Simplest backup procedure

Post by Dr.CSS »

Damn and I was just going to get it to try... oh well...
Locked

Return to “CMSMS Core”