Scott Lawrence wrote:
On Thu, 2008-06-12 at 22:25 +0300, Mircea Carasel wrote:
Hi,
First of all thanks a lot Kevin for your review.
I would like to share on the list some comments and explanations regarding the implementation of this feature, based on your comments:

1) - When backup is performed it is uploaded on the ftp server on the location that is exposed by the supplied ftp username/password. Depending on what username/password is provided by accessing the Backup/Restore Ftp Configuration page the backups will be uploaded in that location. For instance the administrator can configure the FTP server with how many user he wants - each user having therefore a coresponding uploading location The location that is specified in the sipxconfig.properties - ftpBackup - is used in the ftp backup process like this: First the files are temporary saved on local sistem in the ftpBackup directory (located in the same path as the "backup" directory -> /usr/local/sipx/var/sipxdata) and then are uploaded on the ftp server in the location exposed by the username/password provided in the FTP Backup/Restore Configuration page When the user issues another ftp backup operation the previous temporary savings are deleted

So my opinion is that in fact the sipXconfig should not be aware of the remote ftp path where the backup is uploaded - this path is automatically exposed with the FTP connection, depending on the username/password supplied. So the administrator should configure the FTP server itself with what users he wants - with what paths he desires. In this way the Backup/Restore is easy to handle - we can have one ftp server with many users and therefore many remote ftp upload paths. We can pick any path we want just by providing the coresponding username/password

In general, it's not a good idea to make the correct operation of a
sipXecs feature depend on the administrator having correctly set up the
configuration of some other system (witness all the trouble we've had
with DNS and DHCP).  In this case, allowing an optional directory path
would seem to add some flexibility that would reduce the need for
external configuration (essentially, that path needs to be configured
either in the ftp server or in our system anyway, so I think it's better
if it's in ours)
In any case (configure a path on the ftp server where backups will be uploaded / specify a path on sipXconfig where to upload backup data) we still need to have the ftp server being correctly configured with users (username/password) that, upon connection permit upload to take place. When the supplied username/password is not created on the FTP server, a FTP connection error message is displayed.
The creation of the username/password will - by default- expose a path.
If we let sipXconfig to define paths where the data will be uploaded on the ftp server we need to follow the following work-flow:

1. connect on the ftp server with the supplied username/password
2.on the ftp server - create the directory specified by sipXconfig - in the path exposed by the supplied username/password 3.upload the backups in this newly created directory in directories created with names based on the current time/date (the same name format as for local backup)

Currently the work-flow is:
1. connect on the ftp server with the supplied username/password
2.upload the backups in the path exposed by the supplied username/password in directories created with names based on the current time/date (the same name format as for local backup)

Please advise what work-flow you think is better ( the current one or the first one - with sipXconfig directory added)

Thanks,
Mircea



_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to