142 Commits

Author SHA1 Message Date
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
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
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
66ce230f40 Add pkg_dir attribute, clean up code, and update respective tests 2019-03-18 05:29:35 -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
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
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
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
Eric Torres
afe0782187 Code and docstring cleanup 2019-03-13 20:37:49 -07:00
Eric Torres
6a8dcf1ce8 Separate Hierarchy class into Repository and Snapshot subclasses 2019-03-13 14:26:37 -07:00
Eric Torres
a6a670f77f Hierarchy: remove snapshot_dir attribute and add boot_dir attribute 2019-03-13 03:11:47 -07:00
Eric Torres
cf04e3ff8a Clean up config files 2019-03-13 02:43:45 -07:00
Eric Torres
e65170ab57 Add package_managers package 2019-03-13 02:30:13 -07:00
Eric Torres
49655c9641 Add config folder for /etc files to rbackup project 2019-03-13 02:29:30 -07:00
Eric Torres
b09be02fab General code cleanup for hierarchy module 2019-03-13 02:29:10 -07:00
Eric Torres
4393e282ab Remove date module, as it has been merged into hierarchy 2019-03-13 01:55:49 -07:00
Eric Torres
afa4eb9975 Add modules for basic functions 2019-03-12 17:47:25 -07:00
Eric Torres
a3717ce355 Initial commit 2019-02-07 23:19:21 -08:00