Commit graph

55 commits

Author SHA1 Message Date
f5fe3d6580 update docs & Cargo.toml 2024-03-17 03:25:44 +09:00
0e8bd6b4c7 remove unnecessary arguments for StorageExt::mount_path 2024-03-17 02:47:34 +09:00
ed43d819d6 test for util::{min_parent_storage, expand_tilde} 2024-03-17 02:37:31 +09:00
b1b174b4b3 add backup done 2024-03-16 23:28:09 +09:00
4f0d725b52 fix: windows path canonicalization
use these
- expand_tilde
- dunce::canonicalize
2024-03-15 20:54:26 +09:00
26fbea5d3a test for backup_add 2024-03-15 13:56:23 +09:00
ff32996360 new subcommand: backup list
- todo: fancy print
2024-03-15 04:19:26 +09:00
d947dd35e0 Revert "Create rust.yml"
This reverts commit f0d19a13e5.
Need to configure git in CI.
2024-03-14 09:03:12 +09:00
qwjyh
f0d19a13e5
Create rust.yml
with default
2024-03-14 08:59:37 +09:00
38957c1d39 cargo update 2024-03-14 08:57:49 +09:00
905d392419 add backup add
- change Storage::parent
- split path diff calc to util
- test for backup add
2024-03-14 08:54:12 +09:00
41b2924ad7 add test for storage add
- failure due to name duplication
- success with online & subdirectory with two devices
    - used local git to write test (TODO?: use only git2)
2024-03-14 06:35:11 +09:00
d9812bf006 fixup! add backup related types and cmd arguments 2024-03-14 02:14:55 +09:00
56563a0e8b add backup related types and cmd arguments
- fix some typos & format
2024-03-13 20:09:51 +09:00
d1f7a4787e (WIP) implement sync 2024-03-13 05:36:37 +09:00
498dd2db9b update storage bind 2024-03-13 05:36:19 +09:00
d212d32430 add test for storage add online 2024-03-13 04:25:38 +09:00
1aa74acf31 update test to use bare repository to simulate multi device 2024-03-13 04:08:57 +09:00
7c8ee7a500 redesign storage add Commands
- replace storage add args with subcommands of physical, directory,
  online
- to make argument dependencies clearer
2024-03-12 16:18:24 +09:00
e3675632c1 fixup! replace raw HashMap with Storages 2024-03-12 00:02:32 +09:00
8eb7d1179d init STORAGESFILE and DEVICESFILE at repo init and change Storages.read
- return Err instead of new object when there is no STORAGESFILE
- setup empty DEVICESFILE and STORAGESFILE at repository initialization
- update readme
2024-03-11 09:18:17 +09:00
7e026ec229 replace raw HashMap with Storages 2024-03-10 13:00:28 +09:00
4283e1e98a change init command & add integration test
- now need to specify device name via cmd arg
- can use private repository with ssh key or ssh-agent
- adding integration test utility crates
2024-03-07 14:59:58 +09:00
9935f79920 add option to provide config dir 2024-03-06 03:49:32 +09:00
24f34da588 update storage list and some refactor 2024-03-03 06:11:25 +09:00
ff72228821 [refactor] separate subcommands to other file 2024-02-28 03:17:32 +09:00
b949cca1e8 refactor: separate argument defs 2024-02-27 13:59:13 +09:00
01dd0ad77a Merge branch 'main' of github.com:qwjyh/xdbm 2024-02-27 13:07:56 +09:00
5c83532719 Revert "refactor: separate subcommands"
This reverts commit 4502113e41.
2024-02-27 13:07:49 +09:00
4502113e41 refactor: separate subcommands 2024-02-27 13:02:09 +09:00
71e3cad6da new: method for storage list 2024-02-24 18:31:56 +09:00
2f9fa08cf2 storages.yml check 2023-12-08 03:25:15 +09:00
5f81eccd2d add for online, refactored bind 2023-12-08 03:18:31 +09:00
017e34d392 add manual type for physical drive add 2023-12-07 04:23:24 +09:00
bf1a5e23fe update doc 2023-12-06 12:46:20 +09:00
b54cbf00f0 online storage & fix directory parent find & and so on 2023-12-06 11:18:46 +09:00
83233740aa move device related functions & add doc 2023-12-05 03:58:19 +09:00
9706e8d41e remove unnecessary file 2023-12-05 03:30:40 +09:00
abcb01897f new: adding sub-directory 2023-12-05 03:24:49 +09:00
7a4c1e5325 Use HashMap instead of Vector<Storage> 2023-12-04 21:34:24 +09:00
1f0e43cd52 (WIP) implementing storage::directory 2023-09-01 10:37:30 +09:00
33e1a9aba7 refactoring: moved storage related functions to crate storage 2023-08-30 03:05:26 +09:00
78b2d956a7 fix: storage bind (add writing and commiting) 2023-08-30 02:52:12 +09:00
d7e7665739 new: storage bind 2023-08-29 21:33:46 +09:00
ae9cd0ee4c add: Debug for storages 2023-08-29 04:22:04 +09:00
092809c2c6 refactoring: separate file for storages 2023-08-29 02:11:47 +09:00
1cb8659412 refactoring: separate file for devices 2023-08-29 01:30:24 +09:00
26a9d91297 refactoring: modularize devices 2023-08-29 00:34:22 +09:00
3648a190b7 completed storage add 2023-08-28 22:40:43 +09:00
4bacba7ff9 fix: git (write index to file) 2023-08-28 21:45:05 +09:00