Page 1 of 1

Restore from FTP backup does not work

Posted: Wed Feb 28, 2018 10:29 am
by ttvesta
Hello,
I cannot restore an FTP backup.
I am using Vesta 0.9.8.
Vesta is configured to use ftp backup only (no local backup).
The backup works correctly. The tar file is created in the remote FTP server and if I download and check the tar file is correct.
A restore operation fails with the following message:
"Can't unpack PAM contaner"

Thanks.

Re: Restore from FTP backup does not work

Posted: Thu Mar 01, 2018 10:26 am
by ttvesta
I have found the bug in VestaCP that caused the problem.
This is the explanation in case someone wants to correct the bug:

The script 'v-restore-user' downloads files using FTP to local directory 'home/[user]', in my case '/home/admin'. The error was caused because 'tar' tried to read the downloaded file from '/backup' and the file was not there, it was in '/home/admin'.
I changed the 'ftpc()' function by adding a new line after the ftp command 'binary':
lcd $BACKUP
so that local directory is changed to '/backup'. That way the tar file is downloaded where it is expected later.

Re: Restore from FTP backup does not work

Posted: Tue Feb 04, 2020 6:21 am
by daniyal.javani
Same issue, why it's not fixed till now?

Re: Restore from FTP backup does not work

Posted: Tue Feb 04, 2020 6:23 am
by daniyal.javani
Also I cannot download the backup when it's on ftp only, any idea?

Re: Restore from FTP backup does not work

Posted: Tue Feb 04, 2020 7:09 am
by daniyal.javani
Anyway my problem solves by mv /home/admin/admin.* /backup/