Commit graph

358 commits

Author SHA1 Message Date
Josh Hansen
71de9b8a53 Fix directory existence check 2023-10-01 13:40:27 -07:00
Josh Hansen
74a4390bf1 Don't require restore to be invoked inside a table, just passed paths that are in a table 2023-09-30 22:27:57 -07:00
Josh Hansen
65d9017ead Roadmap update 2023-09-30 22:23:49 -07:00
Josh Hansen
139daa5e7f Switch the hidden prefix char from : to . 2023-09-30 22:23:24 -07:00
Josh Hansen
ae1c55c6a3 Prep to change hidden prefix 2023-09-30 22:09:13 -07:00
Josh Hansen
7d7c785d9b Prefix the xattr api: user.ghee -> user.ghee.v0 2023-09-30 22:05:24 -07:00
Josh Hansen
d6b14e53f8 user.ghee.most-recent-snapshot -> user.ghee.HEAD; user.ghee.snapshot-message -> user.ghee.commit-message 2023-09-30 21:47:32 -07:00
Josh Hansen
d7ba5f293e Rename output folder: example -> snapshot 2023-09-30 21:39:53 -07:00
Josh Hansen
7d82723876 example.sh -> snapshot-test.sh 2023-09-30 21:34:57 -07:00
Josh Hansen
b7aa052fda example_output -> snapshot.output 2023-09-30 21:33:00 -07:00
Josh Hansen
55f9fcf3b7 test.sh -> unit-test.sh 2023-09-30 21:32:26 -07:00
Josh Hansen
013d10b383 Roadmap update 2023-09-30 17:53:04 -07:00
Josh Hansen
f7d8760dbf Roadmap work 2023-09-30 15:50:35 -07:00
Josh Hansen
47b83ee57c Snapshot test both relative and absolute path based invocations
Also output comments
2023-09-30 15:49:38 -07:00
Josh Hansen
5b89b46145 Prep better for absolute paths 2023-09-30 02:12:56 -07:00
Josh Hansen
945c423694 prefix paths in example.sh 2023-09-30 01:02:49 -07:00
Josh Hansen
4a8b72af74 sh -> bash 2023-09-30 00:57:24 -07:00
Josh Hansen
f1b4dd50a5 Roadmap update 2023-09-29 23:31:38 -07:00
Josh Hansen
f0574a563b Try to test get which has been buggy lately.... 2023-09-29 23:30:36 -07:00
Josh Hansen
09b8e7475d touch /status / restore / status on btrfs example 2023-09-29 23:20:22 -07:00
Josh Hansen
393278362e Disable / remove printlns 2023-09-29 23:17:59 -07:00
Josh Hansen
b0fcb0fe8e Really truly fix status 2023-09-29 22:24:54 -07:00
Josh Hansen
e730a35c2d Attempt to fix status iterator alignment issues; bugs remain 2023-09-29 11:04:16 -07:00
Josh Hansen
da30513add Fix log and add to example.sh / example_output
`status` bug remains
2023-09-28 14:50:38 -07:00
Josh Hansen
9d2650d0a5 Add restore to example.sh btrfs commands; reveals likely bug in status 2023-09-28 13:45:47 -07:00
Josh Hansen
9a8db8c3d5 Finish restore impl 2023-09-28 13:44:56 -07:00
Josh Hansen
75eab354c8 Almost fully implement restore 2023-09-28 00:12:49 -07:00
Josh Hansen
b99f8d50fc Update roadmap 2023-09-27 23:26:57 -07:00
Josh Hansen
1d6cff3bbe Framework for restore 2023-09-27 23:26:51 -07:00
Josh Hansen
0603e0b423 Run against an ext4 image; run main commands against btrfs too
This way we test both with- and without-btrfs support
2023-09-27 16:45:23 -07:00
Josh Hansen
a50f90b280 Extract functions 2023-09-27 16:12:06 -07:00
Josh Hansen
c76f88bd43 Only set owner/group upon snapshot dir creation 2023-09-27 15:22:41 -07:00
Josh Hansen
6399aabb66 Reflect btrfs additions in example_output, now working properly 2023-09-27 14:25:27 -07:00
Josh Hansen
2c89984b50 Quiet cargo build 2023-09-27 14:25:08 -07:00
Josh Hansen
cc5f6e3dd0 Disable btrfs-specific message on create 2023-09-27 14:25:01 -07:00
Josh Hansen
a6fbbcd202 Reflect ghee invocation change in snapshot 2023-09-27 14:22:36 -07:00
Josh Hansen
1b44d5150c Initialize buffer properly; get things working 2023-09-27 14:19:29 -07:00
Josh Hansen
26c2883800 Status after olive 2023-09-27 14:09:14 -07:00
Josh Hansen
d250ed37b1 Simplify file read 2023-09-27 14:08:52 -07:00
Josh Hansen
9a17941bdc Account for directories 2023-09-27 14:08:30 -07:00
Josh Hansen
4e8dcbbc06 Extract file hashing 2023-09-27 13:46:30 -07:00
Josh Hansen
96b0a72ed0 Propagate args to cargo build invocation 2023-09-27 13:25:43 -07:00
Josh Hansen
a3cde3da81 Only create snapshots dir if needed 2023-09-27 13:25:32 -07:00
Josh Hansen
c43ef9b43c BTRFS stuff in example.sh; not all working yet 2023-09-27 12:35:56 -07:00
Josh Hansen
2e7c57114a Restore "re-relativized" path output
Simple relative paths were .e.g ./olive (within table "pizza") rather than ./pizza/olive. We're calling this latter form re-relativized.
2023-09-27 11:57:03 -07:00
Josh Hansen
f0482d0e08 Don't absolutize needlessly (containing_table_info does it) 2023-09-27 11:55:16 -07:00
Josh Hansen
4bde4d462e Seemingly get status working 2023-09-27 11:48:38 -07:00
Josh Hansen
713f344657 Use WalkDir iteration directly for simplicity; avoids mismatch of snapshot tableinfo 2023-09-27 11:21:07 -07:00
Josh Hansen
3f78882ec6 Good progress on status; bugs remain when running in presence of snapshot 2023-09-27 00:12:20 -07:00
Josh Hansen
3aa5bcef71 Roadmap work 2023-09-26 22:22:57 -07:00