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
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ć
d74e19b13d
Update README.md
2016-11-05 19:00:31 +01:00
Zlatko Čalušić
46d38fb861
Update README.md (add license text)
2016-11-05 18:58:31 +01:00
Zlatko Čalušić
79703a35f0
Update README.md (add badges)
2016-11-05 18:53:57 +01:00
Zlatko Čalušić
c2d31bf711
Sort directories
2016-11-05 18:30:44 +01:00
Zlatko Čalušić
8e5ee39ba6
Add .travis.yml
2016-11-05 18:20:43 +01:00
Zlatko Čalušić
90b4483b16
Update LICENSE
2016-11-05 17:49:22 +01:00
Zlatko Čalušić
160ad45d6f
Update README.md
2016-11-05 17:45:46 +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
07fae00e7d
Merge branch 'master' into simple
2015-09-19 15:07:27 +02:00
Chapuis Bertil
3a9283a115
enabled htpasswd authentication
2015-09-19 14:52:50 +02:00
Chapuis Bertil
60fe10382a
added htpasswd
2015-09-19 14:28:43 +02:00
Chapuis Bertil
7972b1330b
removed dependency to the backend
2015-09-19 14:28:26 +02:00
Chapuis Bertil
a982e279f3
renamed file
2015-09-18 17:17:33 +02:00
Chapuis Bertil
2fb76f3f8d
added handlers and context
2015-09-18 17:13:38 +02:00
Chapuis Bertil
04e8c1e148
test status code
2015-09-18 13:02:20 +02:00
Chapuis Bertil
7bf9802504
some basic tests for the router
2015-09-17 13:46:49 +02:00
Chapuis Bertil
d4717695cb
new router implementation
2015-09-17 13:46:29 +02:00
Chapuis Bertil
265814c7a5
corrected the directory layout
2015-09-17 09:17:42 +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
e69d5b7615
empty backend type
2015-09-09 10:46:54 +02:00
Chapuis Bertil
65767fc061
some documentation
2015-09-08 21:35:48 +02:00
Chapuis Bertil
b1a084ff70
start server correctly
2015-09-07 16:17:24 +02:00
Chapuis Bertil
7271b9a757
htpasswd file relative to repo
2015-09-07 15:32:51 +02:00
Chapuis Bertil
ff5e60135c
htpasswd file relative to repo
2015-09-07 15:32:38 +02:00
Chapuis Bertil
738e78c439
command line args
2015-09-07 15:29:24 +02:00
Chapuis Bertil
436de7f687
https support
2015-09-07 15:11:03 +02:00
Chapuis Bertil
e85e6fab96
small refactoring
2015-09-06 17:45:08 +02:00