Best way to copy a site on the same server

Permalink 1 user found helpful
I haven't been able to locate a thread that says what the most efficient way to copy a site on the same server is. I want to create a new site but start with the same modified theme, custom blocks, custom 404 page, etc. Can I just copy the contents of the root folder? Although I have lots of images and things that I would not need in the new installation.
Thanks in advance for your help.

 
nbruley replied on at Permalink Reply
I copied everything and the blocks and custom attributes don't come in but I guess it's not hard to make them over.

I also had to copy the config/site.php file from the new installation back in.
Mnkras replied on at Permalink Best Answer Reply
Mnkras
nbruley replied on at Permalink Reply
Thanks! Are the blocks and pages stored in the database?
jkeller replied on at Permalink Reply
Hey everybody. I followed this procedure to copy a site so I would have a test environment with the same content as the live site.

I copied the file structure, and made a copy of the database.

I edited the new site.php so that it looks like this:

<?php
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'jkeller_c5user');
define('DB_DATABASE', 'jkeller_c5realsandbox');
define('BASE_URL', 'http://174.122.28.111');
define('DIR_REL', '/~jkeller/c5sandbox');

this is the new copy of the database, and the new folder on the file system. I can hit the main URL for this new copy and it goes there. HOWEVER what is baffling me is when I append /login to it, and log in so as to edit, it ends up with the URL containing the OLD folder: c5coe, instead of the NEW folder: c5sandbox.

Any ideas?
-Joe
nbruley replied on at Permalink Reply
Let me know if you figure it out!