Commit Graph
26 Commits
Author SHA1 Message Date
Jeremie Courreges-AnglasandDenis Cardon 26c45f3fe6 Stoopid unicode 2020-11-20 14:11:17 +01:00
Jeremie Courreges-AnglasandDenis Cardon 5a1e984a0b Use pg_dump -Z to compress the output on the fly
Less temp files overhead, less space used in tmp_dir, and less code.
-Z is supported since PostgreSQL 7.1.
2020-11-20 14:11:16 +01:00
Jeremie Courreges-AnglasandDenis Cardon 8ab66245ff More precise exception handling
In python2 OSError and IOError are different for no good reason, in
python3 IOError is an alias for OSError.
2020-11-20 14:11:16 +01:00
Jeremie Courreges-AnglasandDenis Cardon 10001a6b74 Allow 'cleanup' to run when no space is left
Be conservative and only unlock the 'cleanup' functionality, else we'd
have to check that all other actions handle ENOSPC gracefully.

Noticed at Concept Hygiene: https://assistance.tranquil.it/scp/tickets.php?id=2010
2020-11-20 14:11:16 +01:00
Jeremie Courreges-AnglasandDenis Cardon e2c0e7e516 Respect tmp_dir, fixes temp files removal 2020-11-20 14:11:15 +01:00
Jeremie Courreges-Anglas 091c1a9e58 Stoopid unicode 2018-08-17 16:58:59 +02:00
Jeremie Courreges-Anglas 57eccd2203 Use pg_dump -Z to compress the output on the fly
Less temp files overhead, less space used in tmp_dir, and less code.
-Z is supported since PostgreSQL 7.1.
2018-07-27 11:53:30 +02:00
Jeremie Courreges-Anglas e506ad195e More precise exception handling
In python2 OSError and IOError are different for no good reason, in
python3 IOError is an alias for OSError.
2018-05-16 17:35:31 +02:00
Jeremie Courreges-Anglas 1bbea09f55 Allow 'cleanup' to run when no space is left
Be conservative and only unlock the 'cleanup' functionality, else we'd
have to check that all other actions handle ENOSPC gracefully.

Noticed at Concept Hygiene: https://assistance.tranquil.it/scp/tickets.php?id=2010
2018-05-16 16:29:58 +02:00
Jeremie Courreges-Anglas 39859ffee1 Respect tmp_dir, fixes temp files removal 2018-05-09 17:57:13 +02:00
Jérémie Courrèges-Anglas 7e6983f77a Also log error messages from btrfs.
Minor whitespace cleanup while here.
2015-05-15 12:26:53 +02:00
Jérémie Courrèges-Anglas e3e58d8963 Sync with last changes in backup_rsync.py 2015-05-15 12:16:14 +02:00
Jérémie Courrèges-Anglas 8711610053 Actually, log the last 512 bytes. 2015-05-15 11:59:44 +02:00
Jérémie Courrèges-Anglas 5001af381b On unknown error, log the last 256 bytes of rsync output
... else we're completely clueless about what actually happened.
2015-05-15 11:49:34 +02:00
Jérémie Courrèges-Anglas cb9ceba2f8 The intent was probably to log the returncode here too 2015-05-15 11:47:40 +02:00
Jérémie Courrèges-Anglas 0152852eb4 Re-add cipher_spec optional setting, this time with no default value 2015-05-13 17:38:05 +02:00
Jérémie Courrèges-Anglas 94335e6d23 L'implem' de 'cipher_spec' comme param optionel ne marche pas en l'etat 2015-05-13 16:22:22 +02:00
Jérémie Courrèges-Anglas 41d09962eb blowfish is slow and isn't supported on Jessie: let ssh decide
cf. https://support.tranquil.it/issue648
2015-05-13 16:06:45 +02:00
Jérémie Courrèges-Anglas 53b0d44ead Make the cipher spec optional 2015-05-13 15:48:37 +02:00
Jérémie Courrèges-Anglas 2fc54046c2 Just use the json module from the python distribution
One less requirement for packaging.
2014-11-20 16:10:55 +01:00
Jérémie Courrèges-Anglas cde133eadd str2bool is not only useful in backup_xva, make it avail. elsewhere. 2014-11-20 15:59:29 +01:00
Jérémie Courrèges-Anglas bea13b4424 Log errors when fetching .xva images 2014-11-20 15:48:56 +01:00
Jérémie Courrèges-Anglas 3ede128155 Simplify url construct. 2014-11-20 15:48:29 +01:00
Jérémie Courrèges-Anglas 059c94797a Tiny optimization for copy_vm_xcp / backup_xva schemes
Both methods create a snap and make a copy of it, and both methods
ought to be used in the same backup process.  To avoid overwhelming
the storage, it is now possible to avoid deleting a snap in
copy_vm_xcp (delete_snapshot=no) so that it gets reused in
backup_xva (reuse_snapshot=yes).

Requested by Yvan.
2014-11-20 15:48:00 +01:00
Jérémie Courrèges-Anglas 4d054189c7 Better error message 2014-11-20 15:32:02 +01:00
Jérémie Courrèges-Anglas d43b948482 A basic .gitignore. 2014-11-19 17:23:32 +01:00