Vesta 2.0 is coming soon! See our progress update: https://vestacp.com/docs/vesta-2-update
Restore from FTP backup does not work
Restore from FTP backup does not work
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.
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
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.
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.
-
- Posts: 8
- Joined: Fri Oct 18, 2019 7:33 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Re: Restore from FTP backup does not work
Same issue, why it's not fixed till now?
-
- Posts: 8
- Joined: Fri Oct 18, 2019 7:33 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Re: Restore from FTP backup does not work
Also I cannot download the backup when it's on ftp only, any idea?
-
- Posts: 8
- Joined: Fri Oct 18, 2019 7:33 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Re: Restore from FTP backup does not work
Anyway my problem solves by mv /home/admin/admin.* /backup/