Rewind file descriptor to not truncate data with Boto 2.2.2+

Signed-off-by: Daniel Farina <drfarina@acm.org>
Rewind sentinel content for backup-completion sentinel

Editorialized to just nix the blanket "except" statement and the
surrounding comment, which dates back to an even less principled time.

Fixes issue #34

Signed-off-by: Daniel Farina <drfarina@acm.org>
Remove bogus attempts at robustness from sentinel upload

This code dates back to some of the earliest versions of wal-e, back
when it relied on s3cmd, and was a pitiful attempt basic robustness.
So stop pretending its robust, update the caveats, and salt the earth
with warnings and promises to make things better and particular ways
to do that.

Signed-off-by: Daniel Farina <drfarina@acm.org>
Where are my manners: Add contributor Tuomas Silen

Signed-off-by: Daniel Farina <drfarina@acm.org>
Don't crash when not using any key prefix at all
Add Ryan Kelly as a contributor

Signed-off-by: Daniel Farina <daniel@heroku.com>
Add Mike Krieger as a contributor and alphabetize

Signed-off-by: Daniel Farina <drfarina@acm.org>
Remove extra imports

Found via pyflakes.

Signed-off-by: Mike Krieger <mikeyk@instagram.com>
Signed-off-by: Daniel Farina <drfarina@acm.org>
Fix unbound variable reference in else-case

This would cause the exception-reraising code to crash.

Signed-off-by: Mike Krieger <mikeyk@instagram.com>
Signed-off-by: Daniel Farina <drfarina@acm.org>
Support for backing up non-running PG cluster

Conflicts:

	VERSION
	wal_e/cmd.py
Copy-edit the while-offline option and make it a boolean flag

This loses a tiny bit of generality, because formations like these no
longer work (which can occur in some scripts):

  $ wal-e backup-push --while-offline=true --while-offline=false ...

But I think in common cases it is easier to read, as the following
will now suffice:

  $ wal-e backup-push --while-offline

Signed-off-by: Daniel Farina <daniel@heroku.com>
Add missing back quote to README
Merge pull request #49 from joevandyk/patch-1

Add missing back quote to README
History. For posterity.

Signed-off-by: Daniel Farina <daniel@heroku.com>
Heroku, Inc had just announced aqusition by Salesforce at the time

So it's just Heroku.

Signed-off-by: Daniel Farina <daniel@heroku.com>
History fixup: April 2011

Signed-off-by: Daniel Farina <daniel@heroku.com>
Make "python setup.py test" just work.

This change removes the use of pytest-xdist as it does not seem to play
nicely with setuptools, and the tests run fast enough as they are.
Switched to use existing external_program_check.
Emit correct error message when there is a problem with psql

Mechanism: only EnvironmentErrors are being handled nowadays to
trigger the error-message-accumulation and reporting logic, so fake up
an EnvironmentError as to let normal error handling take place here.

This is definitely a kludge, but it doesn't seem worth it perform the
obvious alternative option, which is making a new exception type to
treat the same problem.

Signed-off-by: Daniel Farina <daniel@heroku.com>
Set setup.py executable bit

For ./setup.py in the shell

Signed-off-by: Daniel Farina <daniel@heroku.com>