Page 1 of 3

Importing backups

Posted: Wed Jan 27, 2016 2:28 pm
by Shivson
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?

Re: Importing backups

Posted: Wed Jan 27, 2016 2:51 pm
by Mr.Erbutw
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

Re: Importing backups

Posted: Wed Jan 27, 2016 3:25 pm
by Shivson
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.

Re: Importing backups

Posted: Wed Jan 27, 2016 3:35 pm
by Mr.Erbutw
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

Re: Importing backups

Posted: Wed Jan 27, 2016 3:41 pm
by tjebbeke
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.

Re: Importing backups

Posted: Wed Jan 27, 2016 3:45 pm
by Shivson
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?

Re: Importing backups

Posted: Wed Jan 27, 2016 3:46 pm
by Mr.Erbutw
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.

Re: Importing backups

Posted: Wed Jan 27, 2016 3:54 pm
by Shivson
I tried it, but...

Image

Re: Importing backups

Posted: Wed Jan 27, 2016 3:57 pm
by Mr.Erbutw
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

Re: Importing backups

Posted: Wed Jan 27, 2016 4:01 pm
by Shivson
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