This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Clone a website from one sentora install to another server
#2
[Not Solved] RE: Clone a website from one sentora install to another server
(05-23-2024, 04:07 AM)kevwebbie Wrote: So I have a system on server but when I go to it, it doesnt show. I should point out this server was hacked through a wordpress website in 2020 but I still have very important data in /var/sentora that wasnt touched and I need to recover it to another server. Please note I cannot access sentora on the compromised server. I was thinking of using rsync to recover but need the databse too. Is there an easy way to move this to another server??I've already rsynced it to my local machine but dont have the database logins which are on sentora. Any help on this would be appriciated??
Ok, I just typed out all the info below (Expanded info 1 + 2) then realized what you were asking in the LAST line or two.
Next time, please post the actual issue FIRST (Lost/no DB login). It would have saved me a lot of time by not having to create the 'Expanded info 1 + 2' notes. Yet, they may help somebody else Wink

So, the site is online? No errors show? Did your host upgrade their php or change settings with their hosting?
Do you have access to the site? Check the log files for errors?

I should have asked more questions before replying.

Expanded info 1:
If you have a copy of the DB that you need, you can just import that file into any mysql db on any server and access it that way.

DB logins are not an issue if you have a copy of the database saved.

On Sentora you would create a DB and DB user, use phpMyAdmin and log in with the new db and user and then import your saved database file.
For the site, you would just edit it's config file to use the new db.

Expanded info: 2:
The big question is if you had site backups enabled.
If you did then there should be complete site backups in: /var/sentora/hostdata/[client_name]/backups/.
If there are ZIP files in there with something like: [clientname]_May-19-2020_3455789.zip you just might be in luck!
Those ZIP files contain complete site files AND a DB dump.

You used rsync. For what? You have an original rsync of the compromised server?
And if you do, what files/folders did you rsync? ALL Sentora related files/services? (/var/lib/mysql/* folder being the most important.)
Example: /var/lib/mysql/[dbname]/*.idb

If you do not have the backup files but do have the above mentioned files, there's a lot on Google on how to restore from those files: restore mysql database with .idb files

--I Have sooo many questions.. LOL But, I hope the answers above will help somebody.
-TGates - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Messages In This Thread
RE: Clone a website from one sentora install to another server - by TGates - 05-23-2024, 11:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
SMTPTLS port 587 Close after fresh Install franmm25 6 1 ,983 10-23-2024, 09:33 PM
Last Post: Ekwadorin23
\debian 12 install sript? kevwebbie 1 575 08-20-2024, 07:45 AM
Last Post: TGates
Problem Install Sentora 2.0.1 franmm25 11 3 ,783 06-24-2024, 10:53 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)