XCloner — восстановление сайта WordPress

https://wordpress.org
https://wordpress.org

Грамотный системный администратор первостепенно заботится о сохранности вверенных ему в администрирование данных, а потому резервное копирование — основа администрирования. Если вы не заботитесь о бэкапах, будь вы хоть эксперт самого высокого уровня, профессионалом вас не назвать.

Когда на моем блоге количество статей дошло до нескольких десятков, а использовать блог я стал уже полноценно, а не в целях обкатки и тестирования функций, меня все чаще стали посещать мысли «а вдруг все однажды упадет». Использование одиночного диска SATA без всяких рейдов уверенности мне не добавляло, пусть и блог вскоре ждал переезд с тестовой среды на сравнительно защищенную, с использованием raid 1. Не став искушать судьбу я занялся вопросом резервного копирования WordPress. Недолго думая выбор пал на «XCloner» — средство не только резервного копирования, а ещё и клонирования сайтов. Если честно, то пока не могу адекватно оценить «XCloner», кто-то может сказать, что это не лучший выбор, но у меня стояла задача выполнить резервное копирование и протестировать от начала и до конца сценарий восстановления. По отзывам в интернете это средство свою задачу выполняет на отлично, поэтому я и выбрал его.

Исходные данные

Имеем сервер с условным именем «debian01» с ОС «Debian», настроен полностью по моим же статьям — «Debian. Установка системы на виртуальную машину» и «Debian. Начальная настройка системы«. Ниже я все-таки напишу основные моменты настройки, поскольку буду на них ссылаться в последующем.

На сервере «debian01» в каталог /var/www/ установлен «WordPress». Из консоли администрирования «WordPress» добавлен плагин «XCloner».

Подготовка второго сервера

Для полноценного восстановления нам понадобится второй сервер, аналогичный первому, условно назовем его «debian02». Нужно подготовить и настроить этот сервер точно также как и первый:

Сеть:
root@debian7:~# nano /etc/network/interfaces

В файле у интерфейса eth0 задаем следующие настройки:

auto eth0
iface eth0 inet static
address 192.168.1.120
netmask 255.255.255.0
gateway 192.168.1.1

Пропишем DNS-серверы:
root@debian7:~# nano /etc/resolv.conf

nameserver 192.168.1.1
nameserver 8.8.8.8

Уберем проверку пакетов с cd-rom (закомментировать строчки, начинающиеся на cd-rom):
root@debian7:~# nano /etc/apt/sources.list

Обновление системы:
root@debian7:~# apt-get update
root@debian7:~# apt-get upgrade

Ставим необходимые пакеты для wordpress:
root@debian7:~# sudo apt-get install apache2 apache2-utils php5 php5-mysql mysql-client mysql-server

Почему-то нигде в интернете ни в одном руководстве «XCloner» я не нашел упоминания о том, что перед восстановлением надо создать базу данных mysql на новом сервере. Желательно это сделать в точности также как это было на старом — такое же название, пользователь и права.

Создаем базу:
root@debian7:~# mysql -u root -p
mysql> CREATE DATABASE IF NOT EXISTS имя_БД;
mysql> CREATE USER имя_пользователя@localhost IDENTIFIED BY «пароль_пользователя»;
mysql> GRANT ALL PRIVILEGES ON имя_БД.* TO «имя_пользователя»;
mysql> quit

Помимо этого надо разобраться с правами доступа к каталогам. В нашем случае предоставим права владельца каталога /var/www/ и его содержимого пользователю www-data и сделаем это рекурсивно:
root@debian7:~# chown -R www-data:root /var/www/

Достаем из бэкапа файлы (сделать вы это можете где угодно, хоть под Windows, хоть из под Linux):
TAR.php
XCloner.php
В архиве будут два файла «XCloner.php«, нам нужен тот, который весит больше. Помещаем эти файлы в каталог установки сайта — у меня это /var/www/, поскольку других сайтов пока нет и в будущем они не планируются. Также в этом каталоге должен лежать сам архив. Немного размышлений о том, как это лучше всего сделать: я загружал файлы на внешний бесплатный файлообменник и скачивал их с помощью «wget«; вы это можете сделать любым другим способом — скачать с локального ftp-сервера, например; сразу хочу отметить, что облачные хранилища типа «Яндекс-Диска» или «Mail.ru Cloud» не прокатят — они не дают прямой ссылки на загрузку, скачивать можно только через браузер, проверено.

Восстановление сайта через Xcloner

Сразу после копирования всех необходимых файлов проходим по следующему пути: «http://192.168.1.120/XCloner.php» и увидим окно:

wordpress xcloner site restore 01

Необходимо вбить настройки подключения к СУБД. Все они нам известны из процесса создания базы данных на новом сервере (см. выше) — это имя пользователя, его пароль и имя базы данных. Не забываем выставить кодировку utf8, иначе получите знаки вопроса вместо ваших дорогих статей. Как все готово, нажимаем «Start install». Если все нормально, то вы увидите прогресс восстановления и по его завершении получите следующее окно:

wordpress xcloner site restore 02

Нам ничего не остается, кроме как нажать «Please click here to continue with database import…» и после некоторого времени, необходимого для восстановления базы, мы увидим:

wordpress xcloner site restore 03

Нажимаем на «All should be done! Click here to continue…».

Кажется все готово, осталось лишь перейти на ваш сайт, вбив в адресной строке ip-адрес сервера, но, к сожалению, вы получите стандартную страничку приветствия web-сервера «Apache». Чтобы попасть на ваш сайт, нужно удалить дефолтную страницу следующей командой:

root@debian7:~# rm /var/www/index.html

На этом все, сайт должен работать:

wordpress xcloner site restore 04

После того как все восстановлено и проверено крайне желательно удалить скопированные ранее файлы «TAR.php» и «XCloner.php», а также архив бэкапа с помощью команды rm, как это было сделано с файлом «index.html».

comments powered by HyperComments
sample dissertation
2022-07-05 17:09:09
<strong>how to write a dissertation proposal https://professionaldissertationwriting.com/</strong>
online edd no dissertation
2022-07-05 20:12:42
<strong>writing doctoral dissertation https://helpwithdissertationwritinglondon.com/</strong>
proposal and dissertation help plan
2022-07-05 23:01:39
<strong>mba dissertation help https://dissertationwritingcenter.com/</strong>
dissertation help online free
2022-07-06 01:33:07
<strong>writing doctoral dissertation https://dissertationhelpexpert.com/</strong>
write my dissertation
2022-07-06 05:28:04
<strong>writing a dissertation https://accountingdissertationhelp.com/</strong>
dissertation printing
2022-07-06 06:42:14
<strong>dissertation uk help https://examplesofdissertation.com/</strong>
help writing a dissertation
2022-07-06 10:35:29
<strong>format for writing dissertation proposals https://writing-a-dissertation.net/</strong>
writing a dissertation methodology
2022-07-06 12:30:23
<strong>help writing https://bestdissertationwritingservice.net/</strong>
books thesis dissertation help
2022-07-06 17:13:20
<strong>uk dissertation writing help quotes https://customdissertationwritinghelp.com/</strong>
dissertation cover page
2022-07-07 00:43:01
<strong>rfp writing services https://dissertationhelpspecialist.com/</strong>
dissertation proposal template
2022-07-07 02:39:57
<strong>uk dissertation writing help quotes https://dissertationhelperhub.com/</strong>
best online casino usa real money
2022-07-25 19:08:14
<strong>which online casino has the best payouts https://download-casino-slots.com/</strong>
new online casino with free signup bonus real money usa
2022-07-25 21:12:20
<strong>four winds online casino app https://firstonlinecasino.org/</strong>
online casino calculator
2022-07-26 06:04:14
<strong>borgata pa online casino app https://trust-online-casino.com/</strong>
online casino with free bonus without deposit
2022-07-26 06:57:33
<strong>ocean online casino login https://onlinecasinosdirectory.org/</strong>
online sweepstakes casino real money
2022-07-26 11:04:07
<strong>admiral online casino https://9lineslotscasino.com/</strong>
online casino game
2022-07-26 12:23:47
<strong>lucky dragon casino online https://free-online-casinos.net/</strong>
online casino live roulette
2022-07-26 16:02:40
<strong>pa online casino real money no deposit bonus https://internet-casinos-online.net/</strong>
casino online real money usa
2022-07-26 17:39:53
<strong>playnet online casino https://cybertimeonlinecasino.com/</strong>
speaking rock casino online gambling
2022-07-26 19:23:36
<strong>casino gambling online https://1freeslotscasino.com/</strong>
online casino table games
2022-07-26 21:50:44
<strong>casino gambling online https://vrgamescasino.com/</strong>
vegas slots online casino
2022-07-27 00:34:20
<strong>newest online casino real money https://casino-online-roulette.com/</strong>
zone online casino
2022-07-27 03:46:54
<strong>live online casino pa https://casino-online-jackpot.com/</strong>
lucky chances casino online
2022-07-27 14:33:53
<strong>parx online free casino https://casino8online.com/</strong>
best free vpn for windows 2022
2022-08-07 17:54:50
<strong>best vpn torrenting https://shiva-vpn.com/</strong>
browser vpn free
2022-08-07 20:42:27
<strong>best firestick vpn https://freehostingvpn.com/</strong>
best free vpn to use in china
2022-08-07 22:23:48
<strong>vpn free chrome https://ippowervpn.net/</strong>
best vpn reddit 2019
2022-08-08 01:11:42
<strong>how to create a vpn https://imfreevpn.net/</strong>
top vpn rated services
2022-08-08 03:55:49
<strong>best paid vpn https://superfreevpn.net/</strong>
vpn to buy
2022-08-08 05:40:16
<strong>secure vpn https://free-vpn-proxy.com/</strong>
senior gay women dating sites
2022-08-23 14:43:51
<strong>gay dating sites that work on windows free https://gay-singles-dating.com/</strong>
international gay dating website
2022-08-23 17:44:48
<strong>gay dating game fuck https://gayedating.com/</strong>
bi guys dating gay guy
2022-08-23 19:52:04
<strong>gay seniors dating https://datinggayservices.com/</strong>
dating site free online
2022-08-24 12:25:26
<strong>daiting online https://freephotodating.com/</strong>
free web girl
2022-08-24 15:24:31
<strong>farmersonly https://onlinedatingbabes.com/</strong>
bbw dating
2022-08-24 16:56:47
<strong>dating women online https://adult-singles-online-dating.com/</strong>
dating sites adult
2022-08-24 19:20:04
<strong>pof dating site https://adult-classifieds-online-dating.com/</strong>
dating services contact australia
2022-08-24 21:44:28
<strong>free site for dating https://online-internet-dating.net/</strong>
zoosk dating
2022-08-24 23:46:09
<strong>share dating https://speedatingwebsites.com/</strong>
good free dating sites
2022-08-25 03:21:53
<strong>our time dating https://datingpersonalsonline.com/</strong>
dating sitss
2022-08-25 05:08:40
<strong>online dating service https://wowdatingsites.com/</strong>
christian dating for free
2022-08-25 06:59:54
<strong>dating sites for totally free for usa https://lavaonlinedating.com/</strong>
free date sites
2022-08-25 10:04:27
<strong>meet singles online dating https://freeadultdatingpasses.com/</strong>
totally free dating on facebook
2022-08-25 11:56:03
<strong>free and best https://virtual-online-dating-service.com/</strong>
hinge dating
2022-08-25 14:10:04
<strong>zoosk online dating site https://zonlinedating.com/</strong>
windcreek casino online
2022-08-30 15:57:32
<strong>maryland online casino https://online2casino.com/</strong>
play online casino
2022-08-30 17:36:09
<strong>wind creek casino wetumpka online games https://casinosonlinex.com/</strong>
gay chat men's room
2022-09-03 02:02:38
<strong>gay bi and male text chat https://newgaychat.com/</strong>
gay chat random x4
2022-09-03 05:53:40
<strong>gay video chat sites realty to dirtyrouletty https://gaychatcams.net/</strong>
gay men chat roon 91764
2022-09-03 10:44:09
<strong>gay teen chat with nudes https://gaychatspots.com/</strong>
chat room for gay chubs
2022-09-03 14:55:33
<strong>asain gay chat phone lines https://gay-live-chat.net/</strong>
gay video chat sites realty to dirtyrouletty
2022-09-03 21:23:54
<strong>gay zoom webcam chat https://chatcongays.com/</strong>
gay/bi men chat world
2022-09-04 04:15:55
<strong>gay male chat https://gayphillychat.com/</strong>
gay chat rndom
2022-09-04 06:30:59
<strong>dubuque gay guys chat https://gaychatnorules.com/</strong>
best gay webcam chat
2022-09-04 13:00:33
<strong>gay chat rooms phoenix https://gaymusclechatrooms.com/</strong>
gay bi chat line
2022-09-04 17:58:04
<strong>wisconsin gay chat https://free-gay-sex-chat.com/</strong>
boys gay chat
2022-10-20 17:20:49
<strong>gay chat cam https://gaymanchatrooms.com/</strong>
help with writing papers
2022-10-20 18:36:30
<strong>buy college paper online https://term-paper-help.org/</strong>
help with a paper
2022-10-20 19:09:09
<strong>cheap paper writing service https://sociologypapershelp.com/</strong>
where can i find someone to write my paper
2022-10-20 22:01:26
<strong>write my papers discount code https://paperwritinghq.com/</strong>
pay someone to do my paper
2022-10-21 00:12:45
<strong>paper writing services reviews https://writepapersformoney.com/</strong>
buy a paper
2022-10-21 00:54:06
<strong>where to buy resume paper https://write-my-paper-for-me.org/</strong>
thesis paper help
2022-10-21 02:56:29
<strong>college paper writers https://doyourpapersonline.com/</strong>
order custom paper
2022-10-21 06:49:24
<strong>write my paper online https://cheapcustompaper.org/</strong>
write my paper
2022-10-21 07:24:16
<strong>write my paper https://writingpaperservice.net/</strong>
college paper service
2022-10-21 08:47:24
<strong>buy paper online https://buyessaypaperz.com/</strong>
website that writes papers for you
2022-10-21 11:35:53
<strong>pay someone to write your paper https://writemypaperquick.com/</strong>
pay for someone to write your paper
2022-10-21 14:26:52
<strong>pay someone to write a paper for me https://papercranewritingservices.com/</strong>
paper writing services reviews
2022-10-21 17:33:57
<strong>write my business paper https://ypaywallpapers.com/</strong>
where to buy papers
2022-10-21 18:51:59
<strong>paper writing services legitimate https://studentpaperhelp.com/</strong>
1bachelor
2023-01-25 19:57:43
<strong>3promoted</strong>
coursework help uk
2023-02-05 14:11:54
<strong>design coursework https://brainycoursework.com/</strong>
coursework writing
2023-02-05 16:03:48
<strong>do my coursework for me https://courseworkninja.com/</strong>
custom coursework writing
2023-02-05 19:33:20
<strong>custom coursework https://mycourseworkhelp.net/</strong>
design technology coursework
2023-02-05 20:43:57
<strong>coursework writers https://courseworkdownloads.com/</strong>
online coursework
2023-02-05 21:39:24
<strong>coursework writing service https://courseworkinfotest.com/</strong>
data analysis coursework
2023-02-06 00:08:19
<strong>buy coursework https://teachingcoursework.com/</strong>
coursework questions
2023-02-06 01:28:46
<strong>coursework planner https://buycoursework.org/</strong>
coursework history
2023-02-06 03:11:09
<strong>coursework only degree https://courseworkdomau.com/</strong>
free free dating sites
2023-02-08 14:23:49
<strong>free sites https://jewish-dating-online.net/</strong>
date sites free
2023-02-08 15:33:22
<strong>tinder login https://jewish-dating-online.net/</strong>
meet european singles in usa
2023-02-08 16:40:47
<strong>best date sites https://free-dating-sites-free-personals.com/</strong>
free free online dating
2023-02-08 17:56:46
<strong>singles chat https://sexanddatingonline.com/</strong>
our time dating website login
2023-02-08 19:05:53
<strong>free dating nearby https://onlinedatingsurvey.com/</strong>
asian dating sites
2023-02-08 20:00:15
<strong>american dating https://onlinedatingsuccessguide.com/</strong>
dating services contact australia
2023-02-08 22:53:45
<strong>local singles in my area https://datingwebsiteshopper.com/</strong>
best dating apps
2023-02-09 02:06:12
<strong>fdating international https://freewebdating.net/</strong>
Яндекс.Метрика