Re: Has anyone looked into writing an SSH backend for file uploads?

2009-01-30 Thread Jeff FW

Or Samba, too.  I suggested sshfs because the OP said "over SSH".
Also, it takes *no* set-up on the server--just have ssh running.  Not
that NFS is hard to set up, of course--just requires some actual
work.  And who wants to do that?

On Jan 30, 11:29 am, Alex Robbins 
wrote:
> It might be even easier to just set up an NFS mount of the other
> machines. It would be a lot like Jeff's idea, but NFS is pretty tried
> and true. (I don't know anything about SSHFS, it might be really good
> too.)
>
> On Jan 30, 9:54 am, Jeff FW  wrote:
>
> > Instead of trying to get Django to do something like that, have you
> > looked into using sshfs?  That would make it essentially transparent--
> > all Django would know is that it's saving a file to a filesystem.
>
> >http://en.wikipedia.org/wiki/SSHFS
>
> > On Jan 29, 9:05 am, Andrew Ingram  wrote:
>
> > > On Jan 29, 1:19 pm, Christian Joergensen  wrote:
>
> > > > What if one of the machines was unresponsive at the time of the upload?
>
> > > One option would be to have all the files uploaded locally, but the
> > > handler would additionally copy to the other locations. The other
> > > would just to be to have some exception handling. File uploads aren't
> > > a site user task for us, so short periods of broken upload
> > > capabilities are tolerable.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Has anyone looked into writing an SSH backend for file uploads?

2009-01-30 Thread Alex Robbins

It might be even easier to just set up an NFS mount of the other
machines. It would be a lot like Jeff's idea, but NFS is pretty tried
and true. (I don't know anything about SSHFS, it might be really good
too.)

On Jan 30, 9:54 am, Jeff FW  wrote:
> Instead of trying to get Django to do something like that, have you
> looked into using sshfs?  That would make it essentially transparent--
> all Django would know is that it's saving a file to a filesystem.
>
> http://en.wikipedia.org/wiki/SSHFS
>
> On Jan 29, 9:05 am, Andrew Ingram  wrote:
>
> > On Jan 29, 1:19 pm, Christian Joergensen  wrote:
>
> > > What if one of the machines was unresponsive at the time of the upload?
>
> > One option would be to have all the files uploaded locally, but the
> > handler would additionally copy to the other locations. The other
> > would just to be to have some exception handling. File uploads aren't
> > a site user task for us, so short periods of broken upload
> > capabilities are tolerable.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Has anyone looked into writing an SSH backend for file uploads?

2009-01-30 Thread Jeff FW

Instead of trying to get Django to do something like that, have you
looked into using sshfs?  That would make it essentially transparent--
all Django would know is that it's saving a file to a filesystem.

http://en.wikipedia.org/wiki/SSHFS

On Jan 29, 9:05 am, Andrew Ingram  wrote:
> On Jan 29, 1:19 pm, Christian Joergensen  wrote:
>
> > What if one of the machines was unresponsive at the time of the upload?
>
> One option would be to have all the files uploaded locally, but the
> handler would additionally copy to the other locations. The other
> would just to be to have some exception handling. File uploads aren't
> a site user task for us, so short periods of broken upload
> capabilities are tolerable.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Has anyone looked into writing an SSH backend for file uploads?

2009-01-29 Thread Andrew Ingram

On Jan 29, 1:19 pm, Christian Joergensen  wrote:
> What if one of the machines was unresponsive at the time of the upload?

One option would be to have all the files uploaded locally, but the
handler would additionally copy to the other locations. The other
would just to be to have some exception handling. File uploads aren't
a site user task for us, so short periods of broken upload
capabilities are tolerable.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Has anyone looked into writing an SSH backend for file uploads?

2009-01-29 Thread Christian Joergensen

Andrew Ingram wrote:

[...]

> Ideally you'd be able to provide it with a tuple of machines to
> connect to which would allow you to upload to all the machines at once
> (but even if there's one that only allows you to upload to one machine
> that would still be useful).

What if one of the machines was unresponsive at the time of the upload?

Regards,

-- 
Christian Joergensen
http://www.technobabble.dk

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---