Commit graph

94 commits

Author SHA1 Message Date
Zlatko Čalušić
2c90434911 Add debug output for HTTP error cases 2017-01-16 23:39:56 +01:00
Zlatko Čalušić
4d04351ac9 Report data directory on startup 2017-01-16 23:19:51 +01:00
Zlatko Čalušić
20f167f7b4 Refactor main() a bit 2017-01-16 23:15:16 +01:00
Zlatko Čalušić
c1ace4c9d9 Don't shadow config struct 2017-01-16 23:01:08 +01:00
Zlatko Čalušić
ff5fbf34e1 Update README.md 2017-01-04 00:21:02 +01:00
Zlatko Čalušić
87ebe10300 Update to cobra style flags 2016-12-30 23:26:15 +01:00
Zlatko Čalušić
f775e15484 Update LICENSE 2016-12-30 22:43:22 +01:00
Zlatko Čalušić
130b202fdb Update README.md 2016-12-30 22:40:11 +01:00
Zlatko Čalušić
c228f57ddf Report version on startup 2016-12-30 21:56:07 +01:00
Alexander Neumann
0f4373ed7f Replace flag with cobra 2016-12-30 21:13:51 +01:00
Alexander Neumann
6bee34700d Vendor libraries for github.com/spf13/cobra 2016-12-30 21:13:51 +01:00
Zlatko Čalušić
e945404183 Add VERSION 2016-12-30 18:34:37 +01:00
Zlatko Čalušić
81171b67cb Update .travis.yml 2016-12-30 18:34:37 +01:00
Alexander Neumann
791424a1b7 Update .travis.yml 2016-12-30 18:34:37 +01:00
Zlatko Čalušić
1d18db96aa Update glide.yaml 2016-12-30 18:34:37 +01:00
Zlatko Čalušić
afe9f43cd8 Update .gitignore 2016-12-30 18:34:37 +01:00
Alexander Neumann
363d8da2d1 Fix test path 2016-12-30 18:34:37 +01:00
Alexander Neumann
67fbfd5d07 Add build.go 2016-12-30 18:34:37 +01:00
Alexander Neumann
6054876201 Vendor dependencies 2016-12-30 18:34:37 +01:00
Zlatko Čalušić
2f0a16d8b7 Restic server shall be called Rest server from now on
The repo moved from github.com/zcalusic/restic-server to the new home
github.com/restic/rest-server
2016-12-28 21:52:19 +01:00
Zlatko Čalušić
c600048400 Use Go constants for HTTP errors 2016-12-28 19:51:25 +01:00
Zlatko Čalušić
f14b15ee31 Allow multiple repositories 2016-12-28 00:57:25 +01:00
Zlatko Čalušić
755cf10659 Use goji.io pat package to extract params 2016-12-27 18:59:47 +01:00
Zlatko Čalušić
01ff183e12 Named matches updated to match documentation 2016-12-27 17:00:23 +01:00
Zlatko Čalušić
421d869e00 Add REST_backend.md 2016-12-27 16:37:59 +01:00
Zlatko Čalušić
e9522752e3 Travis: stop building with Go 1.6 2016-12-27 16:19:59 +01:00
Zlatko Čalušić
d0027c19db Create toplevel repository directory 2016-12-27 16:15:54 +01:00
Zlatko Čalušić
64efcc2813 Update .gitignore 2016-12-27 16:15:31 +01:00
Zlatko Čalušić
fa0b53efe7 Use goji.io mux
Remove old router implementation.
2016-12-27 14:24:07 +01:00
Zlatko Čalušić
1f29574118 Add debug flag 2016-12-27 12:26:41 +01:00
Zlatko Čalušić
061d31829d Create directories before key setup, not on startup 2016-12-27 01:35:45 +01:00
Zlatko Čalušić
75c1eae7f2 Add isHashed() 2016-11-11 01:29:55 +01:00
Zlatko Čalušić
cc25dffd15 Rename server.go to main.go 2016-11-11 01:24:34 +01:00
Zlatko Čalušić
fcb062d3c6 Refactor server.go 2016-11-11 01:24:06 +01:00
Zlatko Čalušić
bc66905f3f Check for errors in main() 2016-11-11 00:55:56 +01:00
Zlatko Čalušić
1afd09d98a Example systemd service file 2016-11-07 00:54:32 +01:00
Zlatko Čalušić
ad003274d2 Remove unused errors package 2016-11-06 20:18:07 +01:00
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ć
bbcbca2d4e Stop logging date/time
In preparation for systemd configuration. Modern programs are supervised
by systemd. Systemd journal has it's own timestamping, so we don't need
another one.
2016-11-06 19:58:11 +01:00
Zlatko Čalušić
ced5fd1a66 Remove debugging log.Printf() 2016-11-06 19:42:35 +01:00
Zlatko Čalušić
c00e8f6686 Introduce cpuprofile argument 2016-11-06 19:38:41 +01:00
Zlatko Čalušić
0b7c460632 Miscellaneous server.go changes 2016-11-06 19:21:17 +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ć
427806cd36 Introduce listen argument 2016-11-06 12:20:09 +01:00
Zlatko Čalušić
d6a2f21325 Handle errors during server start 2016-11-06 12:11:32 +01:00
Zlatko Čalušić
a357ffcccd Remove unused fs/deviceid_*.go 2016-11-06 11:29:15 +01:00