122 Commits

Author SHA1 Message Date
Eric Torres
dd4f55c1fe Update docstring examples 2019-03-30 22:42:44 -07:00
Eric Torres
cfe4920df3 Log metadata read/write operations 2019-03-30 22:42:11 -07:00
Eric Torres
edee5b4201 Minor correction to docstring 2019-03-30 16:49:47 -07:00
Eric Torres
e41089010f Remove unused imports 2019-03-30 14:31:37 -07:00
Eric Torres
50c7d92f2a Raise ValueError when snapshot name contains a '/' 2019-03-30 14:24:58 -07:00
Eric Torres
41599058fe Add gen_snapshot_path() and add appropriate test 2019-03-30 14:15:09 -07:00
Eric Torres
5cca10a12b Move metadata handling to the Hierarchy class 2019-03-30 14:14:22 -07:00
Eric Torres
874f94c5fc Update tests for the new metadata scheme 2019-03-29 15:38:37 -07:00
Eric Torres
bf7416a42f Add metadata_path attribute 2019-03-29 15:28:09 -07:00
Eric Torres
da1accf609 Minor format change 2019-03-29 15:26:35 -07:00
Eric Torres
fde99f6604 Add metadata handling capabilities and adjust attributes accordingly 2019-03-29 15:25:52 -07:00
Eric Torres
0254a2fa2e Revert "Add unimplemented test case"
This reverts commit c132d1c9d874ac0a43db94a2b0e0308cfa5f2bc9.
2019-03-28 12:30:05 -07:00
Eric Torres
32b5ffec1a Revert "Remove all attributes except those inherited from Hierarchy"
This reverts commit 4236005541347868627faeefb372d7287cf5e791.
2019-03-28 12:29:18 -07:00
Eric Torres
a3fca71d21 Use copies of passed lists in tests 2019-03-28 12:22:04 -07:00
Eric Torres
2c16fe793a Rename current_snapshot attribute, return it on creation, use pickle 2019-03-28 12:12:35 -07:00
Eric Torres
e2ed27cbe4 Ignore basedir and .hypothesis 2019-03-28 12:12:12 -07:00
Eric Torres
bc6f6bc503 Test for a wide range of snapshot scenarios 2019-03-28 12:11:52 -07:00
Eric Torres
c132d1c9d8 Add unimplemented test case 2019-03-28 12:11:23 -07:00
Eric Torres
b57b82c383 Test Hierarchy object creation across a wide range of input types 2019-03-28 12:09:09 -07:00
Eric Torres
4236005541 Remove all attributes except those inherited from Hierarchy 2019-03-28 12:08:06 -07:00
Eric Torres
0ccb6764cd Throw TypeError on invalid destination, add _metadata_path attribute 2019-03-28 12:07:31 -07:00
Eric Torres
aea24e2b6e Move tests package to rbackup.tests 2019-03-27 22:06:46 -07:00
Eric Torres
46aa2c44eb Cleanup tests and use class decorators in tests.test_repository 2019-03-20 00:23:25 -07:00
Eric Torres
6fbf6a34de Add snapshot_dir attribute to Repository 2019-03-20 00:22:48 -07:00
Eric Torres
ccccdb6b77 Allow for means of iteration through Snapshots in a Repository 2019-03-18 10:36:30 -07:00
Eric Torres
6d4bc32c4e Minor update to docstring 2019-03-18 06:35:04 -07:00
Eric Torres
a2f8646787 Remove redundant unit tests already covered in doctests 2019-03-18 06:31:52 -07:00
Eric Torres
66ce230f40 Add pkg_dir attribute, clean up code, and update respective tests 2019-03-18 05:29:35 -07:00
Eric Torres
d8eb9837af Version 3 of working prototype backup script 2019-03-17 19:16:21 -07:00
Eric Torres
ab3eed008c Prototype 2 for backup script 2019-03-17 19:05:26 -07:00
Eric Torres
68e063b3e2 Update gitignore 2019-03-17 18:39:26 -07:00
Eric Torres
b48f199afc Fix broken options passing to rsync 2019-03-17 18:38:12 -07:00
Eric Torres
29664c2797 Add logging info when raising exception for failed rsync process 2019-03-17 18:37:45 -07:00
Eric Torres
59e31016a8 Early prototype of backup script 2019-03-17 18:27:20 -07:00
Eric Torres
ed9b88a1ef Update README type in setup.py 2019-03-17 18:27:03 -07:00
Eric Torres
920acd26d8 Run flake8 linter and refactor accordingly 2019-03-17 18:23:21 -07:00
Eric Torres
30cb9e03a4 Utilize pathlib over os.path for internal path handling 2019-03-17 18:22:30 -07:00
Eric Torres
eab5bb108c Add logging support for rsync module 2019-03-17 09:38:32 -07:00
Eric Torres
8e30de699a Update README with advanced features 2019-03-17 09:37:40 -07:00
Eric Torres
9d226cb78d Minor install command cleanups 2019-03-17 09:37:06 -07:00
Eric Torres
1ee3d10f3e Add logging support for Repository class 2019-03-17 09:35:04 -07:00
Eric Torres
c527367d76 Update docstrings for hierarchy module 2019-03-17 09:34:51 -07:00
Eric Torres
f70a4c96a1 Initialize all properties of Snapshot object in __init__ 2019-03-17 09:34:01 -07:00
Eric Torres
6daab95f5f Minor docstring revision 2019-03-16 07:52:15 -07:00
Eric Torres
7d7b7d095c Update gitignore 2019-03-16 07:46:40 -07:00
Eric Torres
41c194faad Split test_hierarchy into 3 modules and make tests a package 2019-03-16 07:46:03 -07:00
Eric Torres
50f042b2b0 Update docstrings and add doctests 2019-03-16 07:44:28 -07:00
Eric Torres
71f725981c Remove prev_snapshot attribute and update docstrings 2019-03-15 11:40:09 -07:00
Eric Torres
16adea1a58 Split hierarchy module into its own package 2019-03-15 07:40:26 -07:00
Eric Torres
c7d465404f Run black code formatter on all source code files 2019-03-14 09:04:51 -07:00