Commit graph

  • d4c301a831 Add id and hostname property Einar Forselv 2019-11-29 01:31:53 +01:00
  • 14174a4680 expand restic commands Einar Forselv 2019-11-29 01:25:00 +01:00
  • 47601df5eb mount restic cache locally Einar Forselv 2019-11-29 01:24:33 +01:00
  • 3edce72f03 Update .gitignore Einar Forselv 2019-11-26 21:45:57 +01:00
  • 73cb4c33f9 Write restic db to local fs Einar Forselv 2019-11-26 20:00:54 +01:00
  • fb17795566 Add newlines when writing log file Einar Forselv 2019-11-26 19:46:59 +01:00
  • e2a2cf2d26 tests: volumes_for_backup Einar Forselv 2019-11-26 14:24:42 +01:00
  • ab7e4f4aeb bug: Don't include volumes from containers with only database backup Einar Forselv 2019-11-26 14:23:54 +01:00
  • aa7271c159 containers: Missing properties + string represenation Einar Forselv 2019-11-26 14:06:01 +01:00
  • d27ff28f53 fixtures: include service name in container name Einar Forselv 2019-11-26 14:04:37 +01:00
  • ed3774ad14 Only rstrip log lines as to not lose indentation Einar Forselv 2019-11-26 13:04:30 +01:00
  • e6d914df7c build a more robust mount path Einar Forselv 2019-11-26 12:30:44 +01:00
  • ef4ce2ecb4 utils.strip_root Einar Forselv 2019-11-25 22:28:04 +01:00
  • a61452fd91 Test commands Einar Forselv 2019-11-25 21:21:17 +01:00
  • d910c62c62 Include docker container hostname in logger Einar Forselv 2019-11-25 21:21:00 +01:00
  • a35814fd2d Don't decode streamed log from backup container Einar Forselv 2019-11-25 21:20:37 +01:00
  • cb0980f8ce dockerfile: develop install for now Einar Forselv 2019-11-25 21:19:31 +01:00
  • fa6812ad06 More logging + stream container log Einar Forselv 2019-11-15 16:47:40 +01:00
  • f1738147d6 Cleanup Einar Forselv 2019-11-15 14:23:56 +01:00
  • f8d32af313 Dockerfile: Pin restic version, install package, fix entrypoint Einar Forselv 2019-11-15 10:51:47 +01:00
  • 4b9748a0c8 pep8 and spelling errors Einar Forselv 2019-11-12 12:39:49 +01:00
  • 1fbdb89141 Fix broken compose file Einar Forselv 2019-11-12 12:10:19 +01:00
  • f433a50652 Add rvb command shortcut Einar Forselv 2019-11-12 12:09:59 +01:00
  • 44ed5956b0 Check for new container labels Einar Forselv 2019-04-29 04:26:55 +02:00
  • 93425a6530 Merge branch 'master' of github.com:ZettaIO/restic-volume-backup Einar Forselv 2019-04-29 03:43:56 +02:00
  • b91b36fa6d Send email skeleton Frode Ulsund 2019-04-23 14:33:36 +02:00
  • 07628998dd is_true function for checking label value truthfullness Einar Forselv 2019-04-19 17:14:29 +02:00
  • 59cfb40d27 Add mysql test setup Einar Forselv 2019-04-19 06:34:33 +02:00
  • 196c59962b Mount backup volumes into the backup process container Einar Forselv 2019-04-19 02:18:32 +02:00
  • 64908c8e2f Generate volumes for containers with volumes Einar Forselv 2019-04-19 02:16:00 +02:00
  • 312da0f24e Remove old mount string method Einar Forselv 2019-04-19 00:18:40 +02:00
  • 3dc3ce5eb9 More robust container comparator Einar Forselv 2019-04-19 00:13:51 +02:00
  • ba642eeb4b Only obtain containers with backup enabled Einar Forselv 2019-04-19 00:00:28 +02:00
  • 01f7cef709 Proper log streaming Einar Forselv 2019-04-18 07:22:59 +02:00
  • 756da55018 Allow setting mode on volumes Einar Forselv 2019-04-18 07:22:24 +02:00
  • ac7237faa8 Test non-zero exit code Einar Forselv 2019-04-18 07:22:07 +02:00
  • 30e2a669cd Update .gitignore Einar Forselv 2019-04-18 07:13:33 +02:00
  • 1bdb5f9638 Status command should indicate if backup process is running Einar Forselv 2019-04-18 05:49:32 +02:00
  • 82cabb16b3 Ensure backup process actions don't happen in the main container Einar Forselv 2019-04-18 05:44:59 +02:00
  • 862cb47da9 Make container objects comparable Einar Forselv 2019-04-18 05:44:02 +02:00
  • 3807d26f77 Display backup container names in status Einar Forselv 2019-04-18 05:34:51 +02:00
  • 587817fbf5 Replace slash in container name Einar Forselv 2019-04-18 05:34:01 +02:00
  • 6a46632716 Remove temp comments Einar Forselv 2019-04-18 05:18:44 +02:00
  • b5951e484c Remove old debug method Einar Forselv 2019-04-18 05:12:08 +02:00
  • e553125854 backup process container should belong to the current project Einar Forselv 2019-04-18 05:08:35 +02:00
  • 820a78a10f Remove dead code Einar Forselv 2019-04-18 05:07:39 +02:00
  • c37435ea34 Split cli commands into functions Einar Forselv 2019-04-18 05:01:02 +02:00
  • 15c91d5970 Pass env vars and volumes from the backup container to the backup process container Einar Forselv 2019-04-18 04:44:10 +02:00
  • 58b3220a2e Support generating volume list in create/run format Einar Forselv 2019-04-18 04:43:42 +02:00
  • ce50a1ff0e Support getting configured container env vars Einar Forselv 2019-04-18 04:26:30 +02:00
  • f67e9968f5 Trim container fixtures of unused info Einar Forselv 2019-04-18 04:26:08 +02:00
  • fb32d55ea8 Make container fixtures compatible with new format Einar Forselv 2019-04-18 03:55:23 +02:00
  • 30246a2346 Ensure the backup_process label is set for the backup process container Einar Forselv 2019-04-18 03:53:03 +02:00
  • f97986c0af Include env vars in backup_runner Einar Forselv 2019-04-18 03:52:28 +02:00
  • a5480fd645 Include a sample of container json data Einar Forselv 2019-04-18 03:50:53 +02:00
  • d2d5c0aa0f Make Container class compatible with new json format Einar Forselv 2019-04-18 03:50:24 +02:00
  • 6bcb31da98 Query containers using the most recent API version Einar Forselv 2019-04-18 03:49:47 +02:00
  • dd091041b8 Extend backup_runner with additonal parameters Einar Forselv 2019-04-17 20:20:52 +02:00
  • 2913398564 Spelling error Einar Forselv 2019-04-17 20:13:23 +02:00
  • 8bae4712da Remove deprecated code Einar Forselv 2019-04-17 19:16:47 +02:00
  • 15a0952355 Don't allow oneoff containers Einar Forselv 2019-04-17 19:15:58 +02:00
  • 268a945af8 Bug: Ensure container properties are fetched safely Einar Forselv 2019-04-17 04:40:56 +02:00
  • 357e387ed2 Working container spawner Einar Forselv 2019-04-17 04:38:15 +02:00
  • 7a647c06b7 Upgrade to recent docker client Einar Forselv 2019-04-17 03:45:51 +02:00
  • 197cc16b01 Rename backup process label Einar Forselv 2019-04-17 03:28:31 +02:00
  • d819200b7e runner -> backup_runner Einar Forselv 2019-04-17 03:28:07 +02:00
  • e9d4f3edce Test detection of running bacup process container Einar Forselv 2019-04-17 03:18:12 +02:00
  • 33b81a52f0 Detect running backup process container Einar Forselv 2019-04-17 03:17:50 +02:00
  • 5f06c3bb98 Add more docstrings to container module Einar Forselv 2019-04-17 03:09:33 +02:00
  • 2c9c418c6e Add basic type hints Einar Forselv 2019-04-17 03:01:12 +02:00
  • d809496eb2 Test exclude patterns Einar Forselv 2019-04-17 02:45:01 +02:00
  • 9397a87655 Handle exclude patterns Einar Forselv 2019-04-17 02:44:48 +02:00
  • ae2b1c3fc2 Ensure volumes without filters are returned Einar Forselv 2019-04-17 01:18:49 +02:00
  • d2f9bf2217 Working include test Einar Forselv 2019-04-17 00:09:52 +02:00
  • 5a9378441c Rework include/exclude Einar Forselv 2019-04-17 00:09:36 +02:00
  • 4a88cd04da Add test service with volumes and include label Einar Forselv 2019-04-17 00:09:13 +02:00
  • 95defe9e8a Update cli.py Einar Forselv 2019-04-17 00:08:24 +02:00
  • b9c7aad467 Tests: Incude filter Einar Forselv 2019-04-16 22:47:20 +02:00
  • 5a8411c822 Extend tests Einar Forselv 2019-04-16 20:56:00 +02:00
  • fb14d65878 Support getting a service by name Einar Forselv 2019-04-16 20:55:22 +02:00
  • 65b7050930 Generate random sha256 for each container fixture Einar Forselv 2019-04-16 18:22:28 +02:00
  • ac33ee39dd Create config in list_containers Einar Forselv 2019-04-16 18:22:03 +02:00
  • 9d3d87d9d5 Make config check skippable for tests Einar Forselv 2019-04-16 18:21:42 +02:00
  • 21843c8b7f Basic test passing Einar Forselv 2019-04-16 02:57:06 +02:00
  • 1e43c91d85 Remove test code in utils Einar Forselv 2019-04-16 02:22:23 +02:00
  • ab160b3eaa Fixtures module for generating containers Einar Forselv 2019-04-16 02:19:20 +02:00
  • 167fc4e214 Instantiate Config instance instead of using class namespace Einar Forselv 2019-04-16 02:18:49 +02:00
  • 2884fc1eec Make docker URI part of config Einar Forselv 2019-04-15 19:49:57 +02:00
  • e441c1fe91 Notes on db uris Einar Forselv 2019-04-15 19:49:15 +02:00
  • 8d392f89a6 Basic testcase setup Einar Forselv 2019-04-15 19:07:14 +02:00
  • 97ed56feb9 Move container listing to utils module for each mocking Einar Forselv 2019-04-15 19:06:48 +02:00
  • cf76803d3f Remove unnecessary imports Einar Forselv 2019-04-15 18:31:26 +02:00
  • fc47cd993d Basic argparser Einar Forselv 2019-04-15 18:31:08 +02:00
  • 6c25628ecb Map project into container in dev Einar Forselv 2019-04-15 18:30:49 +02:00
  • f7d7dcbf58 nuke old console command Einar Forselv 2019-04-15 17:44:36 +02:00
  • 5fd6542da2 Create console command Einar Forselv 2019-04-15 17:44:17 +02:00
  • 0e7d5308db Entrypoint working from cron and command line Einar Forselv 2019-04-15 17:26:04 +02:00
  • f6ce330d56 Split up modules Einar Forselv 2019-04-15 17:25:42 +02:00
  • 5202353e03 Compose file for dev Einar Forselv 2019-04-15 17:04:16 +02:00
  • 271749615f Basic env file Einar Forselv 2019-04-15 17:03:47 +02:00