Commit Graph

3660 Commits

Author SHA1 Message Date
Jarek
976f3a8819 when saving pack index, also save an object with "P" prefix. 2017-09-06 19:16:54 -07:00
Jarek
fa80f40185 added support for mounting snapshots as drive letters and opening them in explorer on Windows. 2017-09-05 19:01:51 -07:00
Jarek Kowalski
82657f957d extracted timeFormat constant for printing dates in CLI 2017-09-05 18:21:17 -07:00
Jarek Kowalski
76b712c2fb moved creation of repofs entries to snapshot.Manager 2017-09-04 20:47:51 -07:00
Jarek Kowalski
371fc15694 merged 'repofs' into 'snapshot' package 2017-09-04 20:26:25 -07:00
Jarek Kowalski
2b032b1748 refactored FS caching flags 2017-09-04 17:49:36 -07:00
Jarek Kowalski
b08a35e92b refactored FS cache into reusable wrapper that can be applied on top of any filesystem abstraction 2017-09-04 17:42:50 -07:00
Jarek Kowalski
8435ed4c80 beginnings of end-to-end test, cleaned up stdout vs stderr output in a few cases 2017-09-04 17:42:50 -07:00
Jarek
0c98537d30 Fixed handle leak in filesystem storage GetBlock() that was causing test failures on Windows 2017-09-03 15:02:17 -07:00
Jarek Kowalski
e8847b65cc mounting webdav works, changed how FS directory caching is implemented to be based solely on ObjectIDs 2017-09-02 08:29:59 -07:00
Jarek Kowalski
b5973aa998 added support for Ctrl-C unmounting of fuse filesystem 2017-09-02 07:37:51 -07:00
Jarek Kowalski
2c6213239a added cache expiration to fscache.Cache, so that entries based on ObjectID are cached for a very long time and others expire almost immediately.
This allows 'kopia mount all' to see newly created snapshots.
2017-08-29 21:47:06 -07:00
Jarek Kowalski
4b1547fec9 periodically refresh the metadata manager cache when mounting 2017-08-29 21:46:51 -07:00
Jarek Kowalski
998ed1ddac simplified MetadataManager API for listing, added caching of metadata items (unbounded for now)
disabled go <1.9 since we're now using t.Helper(), which is awesome
2017-08-29 21:46:51 -07:00
Jarek Kowalski
42c825c4f4 travis: don't do a shallow clone 2017-08-27 19:52:50 -07:00
Jarek Kowalski
4cb1339236 fixed windows build 2017-08-27 18:25:37 -07:00
Jarek Kowalski
2df77e8b73 add go 1.8 back 2017-08-27 18:20:17 -07:00
Jarek Kowalski
7b766a7681 fixed liter warnings not detected by old linter 2017-08-27 15:16:27 -07:00
Jarek Kowalski
2a37618243 moved to go 1.9 2017-08-27 15:04:02 -07:00
Jarek Kowalski
d613d99f7e beginnings of WebDAV mounting support, not really working yet, need to do have better caching 2017-08-27 15:02:56 -07:00
Jarek Kowalski
e01fcff9a4 fixed sorting of synthetic fs.Entries 2017-08-27 14:49:15 -07:00
Jarek Kowalski
ebe00e9405 fixup 2017-08-27 09:00:32 -07:00
Jarek Kowalski
2b887b0b2e changed fs.Reader to be a Seeker too 2017-08-27 08:58:59 -07:00
Jarek Kowalski
c3064f56b0 added experimental support for WebDAV backends (use http:// or https://) 2017-08-21 22:17:04 -07:00
Jarek Kowalski
b769dc1863 emit a warning instead of failing when unsupported directory entries are encountered 2017-08-20 13:54:54 -07:00
Jarek Kowalski
72174c4200 added 'snapshot estimate' command which counts files to snapshot while applying the current policy and estimates the time to upload 2017-08-20 13:54:28 -07:00
Jarek Kowalski
6f06e04c9a moved genpasswd to another tool 2017-08-20 08:08:19 -07:00
Jarek Kowalski
70c9d49232 reorganized more top-level CLI commands into subcommands 2017-08-20 08:00:01 -07:00
Jarek Kowalski
f606ab4347 reorganized more top-level CLI commands into subcommands 2017-08-20 07:51:24 -07:00
Jarek Kowalski
13e328014b moved 'expire' to 'snapshot expire' 2017-08-20 07:42:49 -07:00
Jarek Kowalski
81f060a2c3 CLI: renamed 'backup' to 'snapshot create' and 'backups' to 'snapshot list' 2017-08-19 23:44:51 -07:00
Jarek Kowalski
d2105aea40 added files policy include/exclude configuration and checking during Upload 2017-08-19 23:36:49 -07:00
Jarek Kowalski
61cc2b46be tweaks to upload behavior: default to ignoring errors, do not hashcache recently changed files 2017-08-19 21:08:36 -07:00
Jarek Kowalski
ff487d1e85 added ability to mount special object 'all' that exposes the whole set of snapshots grouped by user@host, path and time 2017-08-19 19:49:18 -07:00
Jarek Kowalski
484db94e23 removed support for legacy bundles, now that packs are supported everywhere 2017-08-19 18:06:15 -07:00
Jarek Kowalski
fa7c558aaf cleanup indirect object creation logic, which has historically been quite messy, with the new code structure it's much more readable 2017-08-19 14:29:39 -07:00
Jarek Kowalski
f0fcc60374 now that packing is transparent, inline object IDs are not needed, removed support for them and simplified ObjectWriter.Result() to no longer require a parameter 2017-08-19 14:23:09 -07:00
Jarek Kowalski
afc9a4fa4d typo 2017-08-19 14:10:22 -07:00
Jarek Kowalski
cd2fcfeb4f refactored ObjectWriter to allow parallel hashing of parts of large files 2017-08-19 14:08:42 -07:00
Jarek Kowalski
5428657404 made packing transparent to ObjectID, that means previous object Pfoo@packID is now accessible as Dfoo, indistinguishable from real block-based 'foo' 2017-08-19 09:42:06 -07:00
Jarek Kowalski
1f8df162c3 simplified how upload code is structured + how hash cache is emitted 2017-08-18 23:00:03 -07:00
Jarek Kowalski
15e0d59c33 added backup --force-hashing-percentage=0..100 which can be used to re-hash all or part of source files when uploading 2017-08-18 21:13:47 -07:00
Jarek Kowalski
3df0fc0445 added pack support to GetStorageBlocks() 2017-08-18 20:41:25 -07:00
Jarek Kowalski
0c597de0fe added --trace-object-manager flag for debugging repository operation. 2017-08-18 20:40:57 -07:00
Jarek Kowalski
3559776c5f changed internal representation of indirect object IDs to be recursive, to allow storing I objects in packs 2017-08-18 20:13:52 -07:00
Jarek Kowalski
5fead928e0 fixed backups and expire command output 2017-08-16 20:26:06 -07:00
Jarek Kowalski
9634a798a8 additional detail output for 'backups' command 2017-08-13 15:59:45 -07:00
Jarek Kowalski
715f6cf937 change block size cache prefetching to be sharded based on only one character 2017-08-13 11:19:02 -07:00
Jarek Kowalski
4b1b7832e2 fixed logging storage output 2017-08-13 11:18:34 -07:00
Jarek Kowalski
3e36ce748f removed conditional PutBlock, which was causing more trouble that it's worth
with unconditional rewrites any partial block writes are self-correcting on subsequent updates,
without it they can't complete at all.
2017-08-13 08:54:50 -07:00