Commit graph

68 commits

Author SHA1 Message Date
Zlatko Čalušić
267ae63276 Remove fs package and dirty tricks it does
The Linux kernel page cache ALWAYS knows better.  Fighting it brings
only worse performance. Usage of fadvise() is wrong 9 out of 10 times.

Removing the whole fs package brings a nice 100% speedup when running
costly prune command. And that is measured on localhost, the improvement
could be much bigger when using network with higher latency.
2016-11-06 20:09:42 +01:00
Zlatko Čalušić
9bba2f0b78 Miscellaneous handlers.go changes 2016-11-06 18:59:19 +01:00
Zlatko Čalušić
bbca04fd7e Sync BLOB's to disk before returning OK status
This slows down backup command up to 25% on a very fast network (read:
localhost), but is the right thing to do. Safety first, performance
second.
2016-11-06 18:14:08 +01:00
Zlatko Čalušić
65c1af31fe Create data hash folders during startup, too
So, that we are not constantly trying to mkdir() what is already there.
This is a small performance improvement.
2016-11-06 16:23:32 +01:00
Zlatko Čalušić
fe8ce643aa Use temporary folder for temporary files 2016-11-06 15:46:11 +01:00
Zlatko Čalušić
67b66134fc Optimize data directory, hash one level
This brings REST backend up to date with local backend.  Repository
format is now identical between them.  You can now access REST
repository locally, and vice versa.  This is a nice feature!
2016-11-06 14:02:43 +01:00
Zlatko Čalušić
e0ac4f7afb Remove needless build tags 2016-11-06 11:26:06 +01:00
Zlatko Čalušić
5de6d4fd00 Reformat comments 2016-11-06 11:24:28 +01:00
Zlatko Čalušić
93d8c2beba Copy errors & fs packages from the restic repo and fix import paths
Tedious, but I see no better way...
2016-11-05 17:33:34 +01:00
Zlatko Čalušić
80196e6df6 Update with changes from github.com/restic/restic tree
Uncompilable right now, due to bad import paths.
2016-11-05 17:18:42 +01:00
Chapuis Bertil
3a9283a115 enabled htpasswd authentication 2015-09-19 14:52:50 +02:00
Chapuis Bertil
a982e279f3 renamed file 2015-09-18 17:17:33 +02:00
Chapuis Bertil
c19c63325c simple backend 2015-09-16 23:34:11 +02:00
Chapuis Bertil
016bbf619a improved repository with ioutil and added tests 2015-09-09 11:21:15 +02:00
Chapuis Bertil
738e78c439 command line args 2015-09-07 15:29:24 +02:00
Chapuis Bertil
5c4323a168 basic auth 2015-08-25 11:35:49 +02:00
Chapuis Bertil
59621ca2d6 read support for length and offset 2015-08-15 10:06:10 +02:00
Chapuis Bertil
465ef4b493 refactoring 2015-08-14 11:17:57 +02:00