Vesta 2.0 is coming soon! See our progress update: https://vestacp.com/docs/vesta-2-update
Download backup (when backed up to remote ftp)?
Download backup (when backed up to remote ftp)?
Hi. Is it possible to download backup, when backed up to remote ftp?
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Download backup (when backed up to remote ftp)?
Looks like not to possible: https://github.com/serghey-rodin/vesta/ ... /index.phphostmit wrote: Wed Jul 31, 2019 11:44 am Hi. Is it possible to download backup, when backed up to remote ftp?
Re: Download backup (when backed up to remote ftp)?
Okey, inspected backup script, looks like there is no such feature :(
Code: Select all
<?php
// Init
error_reporting(NULL);
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
$backup = basename($_GET['backup']);
// Check if the backup exists
if (!file_exists('/backup/'.$backup)) {
exit(0);
}
// Data
if ($_SESSION['user'] == 'admin') {
header('Content-type: application/gzip');
header("Content-Disposition: attachment; filename=\"".$backup."\";" );
header("X-Accel-Redirect: /backup/" . $backup);
}
if ((!empty($_SESSION['user'])) && ($_SESSION['user'] != 'admin')) {
if (strpos($backup, $user.'.') === 0) {
header('Content-type: application/gzip');
header("Content-Disposition: attachment; filename=\"".$backup."\";" );
header("X-Accel-Redirect: /backup/" . $backup);
}
}
Re: Download backup (when backed up to remote ftp)?
But, you can access to FTP and download it
If you send it to FTP, and then try download it from FTP in vestacp its a lot of bandwidth in your vesta server, if is in production and you not have enough is bad idea, transfer to ftp, then transfer to vesta again and then to your PC
So the easy way is connect to FTP and download it, this feature isnt enable in a lot of control panels for that reason.
If you send it to FTP, and then try download it from FTP in vestacp its a lot of bandwidth in your vesta server, if is in production and you not have enough is bad idea, transfer to ftp, then transfer to vesta again and then to your PC
So the easy way is connect to FTP and download it, this feature isnt enable in a lot of control panels for that reason.