PetaByet / cdp

Simple & Open Source Server Backups
https://cdp.me
GNU General Public License v2.0
122 stars 39 forks source link

Cpanel backup file name is not the same as the one that ftp_get tries to download #38

Closed frederickjh closed 8 years ago

frederickjh commented 8 years ago

Hi!

I have still to make one backup with this program I tried via ssh and it is not working I will fill a separate issue for this if needed. I am still trying to get some output as to why this is not working.

I am getting the following in the email after the backup attempt.

Backup job (8543a3c0704cfb6d3b8eff592ca6539d) started
Starting cPanel backup
Backup started, waiting for it to finish
Backup found, continuing
Creating temporary FTP account for backup transfer
Temporary FTP Account created
Error downloading backup
I ran this via the cron jobs in Webmin which gave this helpful information:
Output from command /usr/bin/php /home/meos/domains/cdp.meosch.tk/public_html/cron.php 8543a3c0704cfb6d3b8eff592ca6539d ..
Array
(
    [type] => 2
    [message] => ftp_get(): Error opening cdpme-2016-01-22-19-35-31-backup-1.22.2016_19-15-25_meosch.tar.gz
    [file] => /home/meos/domains/cdp.meosch.tk/public_html/cron.php
    [line] => 474
)
Message has been sent
I investigated and found that 3 backup files had been created but not with the full file name like above: **cdpme-2016-01-22-19-35-31-backup-1.22.2016_19-15-25_meosch.tar.gz**
$ ls -l |grep .tar.gz
-rw------- 1 meosch meosch 2678233622 Jan 22 20:20 backup-1.22.2016_19-15-25_meosch.tar.gz
-rw------- 1 meosch meosch 2678206087 Jan 22 20:38 backup-1.22.2016_19-33-42_meosch.tar.gz
-rw------- 1 meosch meosch 2678263759 Jan 22 20:40 backup-1.22.2016_19-35-31_meosch.tar.gz
$
**cdpme-2016-01-22-19-35-31-backup-1.22.2016_19-15-25_meosch.tar.gz** is not equal to **backup-1.22.2016_19-15-25_meosch.tar.gz** Not sure were I could have configure this wrong that it would do this. An help in getting this working would be appreciated! Frederick
frederickjh commented 8 years ago

Actually on second look it looks like it cannot open the file locally that it wants to store the backup as.