Backup failed with tmp.xxxx folders. how to recover vestacp user datas with db manually ?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
anuradhan
Posts: 7
Joined: Sat Dec 03, 2016 10:34 am

Backup failed with tmp.xxxx folders. how to recover vestacp user datas with db manually ?

Postby anuradhan » Thu Aug 31, 2017 9:45 pm

I had vestacp running on ubuntu.
the server crashed. when checked it was due to disk outage.

Now, i only have one option to setup new server with old data.
when i checked inside old disk backup folder, there is no tar file, i see lot of folders starting with name tmp.xxxxxx
they are not openable too.

is it possible to recover all website and database.? i have /home/user/web folder as well as /var/lib/mysql datas withme.

please help.

skamasle
Collaborator
Posts: 360
Joined: Mon Feb 29, 2016 6:36 pm

Re: Backup failed with tmp.xxxx folders. how to recover vestacp user datas with db manually ?

Postby skamasle » Fri Sep 01, 2017 1:30 pm

Tmp file was created because you run out of space

Of curse you can transfer website or do backup with /var/lib/mysql content and /home/user/web

Try free some space and run new backup, check your tmp.xxx files this can eat a lot of space some times, try free space from it

anuradhan
Posts: 7
Joined: Sat Dec 03, 2016 10:34 am

Re: Backup failed with tmp.xxxx folders. how to recover vestacp user datas with db manually ?

Postby anuradhan » Sat Sep 02, 2017 1:03 am

skamasle wrote:Post by skamasle » Fri Sep 01, 2017 7:00 pm

Tmp file was created because you run out of space


Thanks for the quick reply skamasle.

rightnow., i'm on new server.
i created user, domains and databases manually,
then i copied old files using commands :
cp -Rf /olddisk/home/user/web /home/user/web
and
cp -Rf /olddisk/var/lib/mysql /var/lib/mysql

Now, the web files are copied, but the databases are not restored.

what am i doing wrong ? please help.

skamasle
Collaborator
Posts: 360
Joined: Mon Feb 29, 2016 6:36 pm

Re: Backup failed with tmp.xxxx folders. how to recover vestacp user datas with db manually ?

Postby skamasle » Sat Sep 02, 2017 8:56 am

This is not good idea cp -Rf /olddisk/var/lib/mysql /var/lib/mysql

May can work, but you need stop mysql and if youu have innodb and you not stop mysql propertly in origin can be broken

If you use myissam shlould work fine.

Try restart mysql, but I cant help you with this prosedure.

anuradhan
Posts: 7
Joined: Sat Dec 03, 2016 10:34 am

Re: Backup failed with tmp.xxxx folders. how to recover vestacp user datas with db manually ?

Postby anuradhan » Sat Sep 02, 2017 2:04 pm

skamasle wrote:This is not good idea cp -Rf /olddisk/var/lib/mysql /var/lib/mysql

May can work, but you need stop mysql and if youu have innodb and you not stop mysql propertly in origin can be broken

If you use myissam shlould work fine.

Try restart mysql, but I cant help you with this prosedure.

Hi.,
Thank you for your suggestion.
this doesnt work- not sure why .,

Do we have any other procedure to follow in my case ?

mehargags
Posts: 705
Joined: Sat Sep 06, 2014 9:58 pm

Re: Backup failed with tmp.xxxx folders. how to recover vestacp user datas with db manually ?

Postby mehargags » Sat Sep 02, 2017 6:27 pm

Why are you making it so tough when the issue is relatively easy.
I don't know what exactly you mean by "Server crashed" but I think just cleaning a couple of GBs from the old server and restarting it should make it work back. Alteast you can put on MySQL service (if it is stopped) and just mysqldump the databases and restore them to the new server.


Return to “Web Server”



Who is online

Users browsing this forum: No registered users and 4 guests