Les Mikesell wrote:

> I don't think tar is capable of transferring a directory listing without 
> the contents of the files.  Since it runs over ssh you could run some 
> other command, but the command isn't guaranteed to exist or to be 
> permitted by the sshd config at the other end.

If 'tar' is permitted by the remote 'sshd' config then I don't
see the danger of also allowing '/bin/ls', especially since
only the backuppc user on the local system would be allowed
to initiate a remote '/bin/ls'. If the right command isn't
'/bin/ls' then there could be a BPC client-specific configuration
option with the correct command.

> And there would be no upper limit on the amount of time it might take
> to generate the full listing - it's not something you'd want to wait
> for on a web page.

True, but maybe in this case the directory listing could
be generated incrementally, where the first display would display
only the topmost directories (or maybe the topmost plus some small
number of lower directories). If users want to see lower level
directories then only the first few levels of these sub-directories
would be returned back to the server. Or, if we really want to
get fancy, there could be an AJAX-enable web interface. That would
solve this problem too.

Jon Forrest




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to