Do i understand correctly... ...you want to create a pgsql dump "on the fly" from an djano site? IMHO not a good idea... what happens if the browser times out? Maybe you can try to trigger a backup in the background, or do backups with an scheduler...
anways, have you tried this on? http://docs.python.org/library/subprocess.html#module-subprocess On Apr 22, 4:10 pm, Zeal <zeal...@gmail.com> wrote: > Sorry, I missed some important part of my code, > > try: > pipe = popen2.Popen4('pg_dump %s > %s' % (' '.join(args), > outfile)) > if self.passwd: > pipe.tochild.write('%s\n' % self.passwd) #this > method is only applicable for unix like system > pipe.tochild.close() > except:#on Windows system, there is no Popen4 and tochild > method > pipe = popen2.popen4("pg_dump -h localhost -p 5432 -U > myusername -F c -b -v -f %s mydb" % outfile) > > as above-posted, for windows system, how can I input postgresql's > password by using some method like tochild. thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---