Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Importing backups

General questions about VestaCP
Post Reply
  • Print view
Advanced search
24 posts
  • 1
  • 2
  • 3
  • Next
Shivson
Posts: 7
Joined: Wed Jan 27, 2016 2:24 pm

Importing backups
  • Quote

Post by Shivson » Wed Jan 27, 2016 2:28 pm

Hello.
I downloaded backup from my server via VestaCP and formated VPS.
After this i installed Vesta again and i don't know where i need to place downloaded backup.
Can someone tell me where is backups directory?
Top

Mr.Erbutw
Posts: 1040
Joined: Tue Apr 29, 2014 10:05 pm

Os: CentOS 6x
Web: apache + nginx
Re: Importing backups
  • Quote

Post by Mr.Erbutw » Wed Jan 27, 2016 2:51 pm

Shivson wrote:Hello.
I downloaded backup from my server via VestaCP and formated VPS.
After this i installed Vesta again and i don't know where i need to place downloaded backup.
Can someone tell me where is backups directory?
http://vestacp.com/docs/#how-to-migrate ... her-server

Code: Select all

How to migrate user to the new server
1. Make user backup on the old server. In this example we will use admin as the reference.

v-backup-user admin

2. Copy tarball to the new server and place it in the /home/backup directory

scp /home/backup/admin.2014-01-14.tar new-server:/home/backup/

3. Restore backup on the new server

v-restore-user admin admin.2014-01-14.tar


If you want to restore data under another user name, simply rename archive. If user name doesn't exist on the server, account will be created automatically.

mv /home/backup/admin.2014-01-14.tar /home/backup/newuser.2014-01-14.tar
v-restore-user newuser newuser.2014-01-14.tar
Top

Shivson
Posts: 7
Joined: Wed Jan 27, 2016 2:24 pm

Re: Importing backups
  • Quote

Post by Shivson » Wed Jan 27, 2016 3:25 pm

Thanks for fast reply but i have one problem.

Image
Image

Backup path: /home/backup

#edit
Since i reinstalled VestaCP it makes 3 auto-backups but i can't find them.
Top

Mr.Erbutw
Posts: 1040
Joined: Tue Apr 29, 2014 10:05 pm

Os: CentOS 6x
Web: apache + nginx
Re: Importing backups
  • Quote

Post by Mr.Erbutw » Wed Jan 27, 2016 3:35 pm

Shivson wrote:Thanks for fast reply but i have one problem.
It makes sense to specify the full path

Code: Select all

sudo /usr/local/vesta/bin/v-restore-user
If you want to recover the admin
Download the archive to /home/backup and then

Code: Select all

sudo /usr/local/vesta/bin/v-restore-user admin admin.2014-01-14.tar

If you have a different user then you need so /home/backup and then

Code: Select all

sudo /usr/local/vesta/bin/v-restore-user user user.2014-01-14.tar

ps...
/usr/local/vesta/bin/v-restore-user user user.2014-01-14.tar when you run this command, the script searches the archives here >/home/backup to restore
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Importing backups
  • Quote

Post by tjebbeke » Wed Jan 27, 2016 3:41 pm

Mr.Erbutw wrote:
Shivson wrote:Thanks for fast reply but i have one problem.
It makes sense to specify the full path

Code: Select all

sudo /usr/local/vesta/bin/v-restore-user
If you want to recover the admin
Download the archive to /home/backup and then

Code: Select all

sudo /usr/local/vesta/bin/v-restore-user admin admin.2014-01-14.tar

If you have a different user then you need so /home/backup and then

Code: Select all

sudo /usr/local/vesta/bin/v-restore-user user user.2014-01-14.tar
You don't need to do this with the full path because the path '/usr/local/vesta/bin' is in your path variable.

Check in wich directory you need to put the backups. You can change this in your control panel.
Top

Shivson
Posts: 7
Joined: Wed Jan 27, 2016 2:24 pm

Re: Importing backups
  • Quote

Post by Shivson » Wed Jan 27, 2016 3:45 pm

tjebbeke wrote:Check in wich directory you need to put the backups. You can change this in your control panel.
Where i can find this?
Top

Mr.Erbutw
Posts: 1040
Joined: Tue Apr 29, 2014 10:05 pm

Os: CentOS 6x
Web: apache + nginx
Re: Importing backups
  • Quote

Post by Mr.Erbutw » Wed Jan 27, 2016 3:46 pm

tjebbeke wrote: You don't need to do this with the full path because the path '/usr/local/vesta/bin' is in your path variable.

Check in wich directory you need to put the backups. You can change this in your control panel.
No it doesn't work, he wrote that he came out of the problem, so it is necessary to write the full path is debian.
And in the control panel does not see these files. Even the documentation says that you need to do.
Top

Shivson
Posts: 7
Joined: Wed Jan 27, 2016 2:24 pm

Re: Importing backups
  • Quote

Post by Shivson » Wed Jan 27, 2016 3:54 pm

I tried it, but...

Image
Top

Mr.Erbutw
Posts: 1040
Joined: Tue Apr 29, 2014 10:05 pm

Os: CentOS 6x
Web: apache + nginx
Re: Importing backups
  • Quote

Post by Mr.Erbutw » Wed Jan 27, 2016 3:57 pm

Shivson wrote:I tried it, but...

Image
and the archive you downloaded to a folder on the server ? /home/backup
*And check the permissions on the archive
Top

Shivson
Posts: 7
Joined: Wed Jan 27, 2016 2:24 pm

Re: Importing backups
  • Quote

Post by Shivson » Wed Jan 27, 2016 4:01 pm

Archive directory: /home/backup

I tried set permissions to 766 and 777 but i still can't restore that backup.
And... why i don't see that 3 backups created by vesta in /home/backup ?

Image
Top


Post Reply
  • Print view

24 posts
  • 1
  • 2
  • 3
  • Next

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password