Page 1 of 1

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

Posted: Thu Aug 31, 2017 9:45 pm
by anuradhan
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.

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

Posted: Fri Sep 01, 2017 1:30 pm
by skamasle
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

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

Posted: Sat Sep 02, 2017 1:03 am
by anuradhan
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.

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

Posted: Sat Sep 02, 2017 8:56 am
by skamasle
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.

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

Posted: Sat Sep 02, 2017 2:04 pm
by anuradhan
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 ?

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

Posted: Sat Sep 02, 2017 6:27 pm
by mehargags
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.