bakare/README.md
2019-01-11 15:31:02 +00:00

1.2 KiB

Motivation: All the backup systems are either slow or crashing or both on my backup.

Tried duply:

  • works but very slow:
--------------[ Backup Statistics ]--------------
StartTime 1547198362.85 (Fri Jan 11 09:19:22 2019)
EndTime 1547209509.04 (Fri Jan 11 12:25:09 2019)
ElapsedTime 11146.19 (3 hours 5 minutes 46.19 seconds)
SourceFiles 3065438
SourceFileSize 585041709586 (545 GB)
NewFiles 0
NewFileSize 0 (0 bytes)
DeletedFiles 0
ChangedFiles 0
ChangedFileSize 0 (0 bytes)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 0
RawDeltaSize 0 (0 bytes)
TotalDestinationSizeChange 111 (111 bytes)
Errors 0
-------------------------------------------------

--- Finished state OK at 12:25:15.000 - Runtime 03:06:43.000 ---

Tried restic:

  • crashes with OOM

Goals for bakare:

  • fast
  • using max bandwidth
  • memory usage limit
  • encryption by default - asymmetric, creates a keypair for you
  • deduplication
  • fuzzy find by file name in stored files

Implementation:

  • hash -> file and file -> hash indexes
  • use vfs to store both db and data files, create a new one when old one too big
  • start with simple read file -> hash -> encrypt -?> send
  • test with randomly created dirs and files, with property based tests and fuzzer