Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Importing Old Data To New Server

Reply to Post Add a New Topic
UserPost

3:50 am
April 23, 2008


Barry

Guest

Hi there,

I have changed servers and just copied the stats data files from my old server to the new one and when I go to view, it is not reflecting the months and years prior (the imported data)

Does anyone know how I can fix this?

Thanks so much for your time.

Regards

Barry

4:01 am
April 23, 2008


Jean-Luc

Admin

posts 1125

Hi,

Compare the name of your new AWStats config file and the name of your old database files. They should use the same config name, like in this example:

- awstats.config-name.conf

- awstats032008.config-name.txt

If the config names are different, just rename your old database files.

4:49 am
April 23, 2008


Barry

Guest

Hi Jean-Luc

Thanks for your reply. I sadly did not make a back up of the content in the new stats folder on the new server, i just over-wrote every thing. I still have the same domain name though.

I have no idea where I can find the following file:

- awstats.config-name.conf

it is not in my Stats folder is there another place that it is stored? (sorry about the silly questions, I am just ignornant ) 🙂

Thanks for your help and your time and most appreciated.

Kind regards

Barry

4:54 am
April 23, 2008


Barry

Guest

Sorry

I have just seen a link on the right of this page how to do that and I have located the file. Thank you so much!!

5:23 am
April 23, 2008


Barry

Guest

I have managed to locate the following:

/tmp/awstats/ directory.

It is called awstats.your_site_name.conf

But I cannot locate this file on my old server. Is is a problem that my old server was windows based? I contact the help desk and asked them to tell me or look for the file and they could not find it.

What do I have to do now? Thanks again and sorry for the trouble.

Regards

Barry

5:33 am
April 23, 2008


Jean-Luc

Admin

posts 1125

You do not need the AWStats config file of the old server. In your first post, you wrote : "just copied the stats data files from my old server to the new one ". These files are all you need. How are they named ?

5:38 am
April 23, 2008


Barry

Guest

There are a whole lot of files duplicated as per below. That is all that was in the Stats folder on my old server.

awstats012007.psptubez.com

awstats012007.psptubez.com.bak

5:56 am
April 23, 2008


Jean-Luc

Admin

posts 1125

Weird that the first file name does not end with “.txt”. I expected your database files to be called awstats012007.psptubez.com.txt, awstats022007.psptubez.com.txt, awstats032007.psptubez.com.txt,…

You said that you found “awstats.your_site_name.conf ” of the new server. You should rename your database files in awstats012007.your_site_name.txt, awstats022007.your_site_name.txt, awstats032007.your_site_name.txt,…

In other words, exactly the same your_site_name must be used for the new config file and for the old database files.

6:06 am
April 23, 2008


Barry

Guest

I do apologise, I looked on my PC and then went to change as you suggested and in FTP it has the .txt at the end of the file names, but there are also files with a .bak extension as well.

Maybe the folder is in the wrong place, it is /public_html/Stats, is that correct?

I am so sorry to be troubling you like this but you are being very kind and helpful and I totally appreciate it! Bless you!

6:58 am
April 23, 2008


Jean-Luc

Admin

posts 1125

These .bak files are backup copies of some .txt database files.

Now that your new config file and your old datafiles carry the same name, check the DirData command in the config file. If you have

DirData="."

then your database files must be in the same directory as your config file. If another directory is indicated, copy the database files in that directory.

Don't you get access to the old stats in your AWStats report now ?

11:00 am
April 23, 2008


Barry

Guest

Thank you, thank you, thank you! I moved all the files into the same folder as the config file and now everything is working just fine!!

I truly appreciate all the time and effort you have taken to help me, you are a very kind person and you will receive your karmic rewards!

Thank you so much, I am really in awe of the kindness that I have encountered from people like you.

Sincerely

Barry

Reply to Post

Reply to Topic:
Importing Old Data To New Server

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
1 + 4
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
8 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2709

Membership:

There are 257 Members
There have been 302 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)