I’m running through our internal docs here and I’ve found that restoring a backup from an FTP server in FREEPBX doesn’t appear to be working. We’re running 3.211.63-6.
If you go to Backup and Restore, and click on Restore on the right, then click on the FTP server entry on the right we get a spinning wheel in the freepbx interface, then nothing.
The FTP server shows that Freepbx is trying to access a directory that doesn’t access. Here’s the FTP log;
NLST
150 Opening data channel for directory list.
226 Transfer OK
PORT 198,67,79,46,170,113
200 Port command successful
LIST -d1 */
550 Directory not found.
QUIT
221 Goodbye
The backup to the FTP site works fine and the uploaded TGZ is fine and can be manually copied to the FreePBX server and restored from there.
Anyone? This appears to have happen on the last few versions and we’ve tried using quite a few FTP servers now. There are a few forum posts on other sites from way-back implying this used to work though.
Can anyone confirm or deny it works or which file I might start looking at?
Here is what I discovered through further testing.
I have a backup job that runs every Sunday night on the FreePBX server. The job is named Weekly_Su. When the job runs it created a subdirectory on my FTP backup server called Weekly_Su and stores the backup files in that directory. The problem seems to be that when you attempt to do a restore the system is unable to retrieve the listing of the subdirectory nor the files in the subdirectory. If I move the files up one directory level then the files will show up in when you do a restore. This is clearly a bug.
I also added the subdirectory Weekly_Su to the path in the FTP server config in FreePBX. The files are then listed. The problem with this is that the next backup will create another Weekly_Su directory within the existing Weekly_Su directory.
What is the ticket number? If you don’t mind I would like to add my findings.
create a second ftp server definition in freepbx with the appropriate path and use that definition for restore and the one without a path definition for backup
This is a problem with FreePBX 2.11.0.0rc1.4 as well. Backup to FTP works, restore doesn’t list files. Not having success with work around either. I am not dealing with folders, just dumping to root.