| 
						
					 | 
					
						
						
							
						
						81820b0d4d
					 | 
					
						
						
							
							src/client/http_client.rs - download: fix error handling
						
						
						
						
						
						
					 | 
					
						2019-06-25 12:43:55 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						9f46c7de4b
					 | 
					
						
						
							
							src/bin/proxmox-backup-client.rs: upload rsa encoded key after backup
						
						
						
						
						
						
					 | 
					
						2019-06-24 13:56:37 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						cb08ac3efe
					 | 
					
						
						
							
							src/api2/backup.rs: replace upload_config with upload_blob
						
						
						
						
						
						
					 | 
					
						2019-06-23 11:44:30 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						bffd40d6b7
					 | 
					
						
						
							
							src/tools.rs: move hex_to_digest and digest_to_hex to proxmox::tools
						
						
						
						
						
						
					 | 
					
						2019-06-14 11:40:04 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						f98ac774ee
					 | 
					
						
						
							
							backup: Add support for client side encryption
						
						
						
						
						
						
						
						first try ... 
						
						
					 | 
					
						2019-06-13 11:47:23 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						bd0e3c7cfa
					 | 
					
						
						
							
							src/backup/data_chunk.rs: Moved ChunkInfo from merge_known_chunks.rs
						
						
						
						
						
						
					 | 
					
						2019-06-13 07:35:02 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						dd5495d6dc
					 | 
					
						
						
							
							tree-wide: use 'dyn' for all trait objects
						
						
						
						
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
						
					 | 
					
						2019-06-07 13:13:48 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						4247fccb0f
					 | 
					
						
						
							
							src/client/http_client.rs: automatically close connection in finish
						
						
						
						
						
						
					 | 
					
						2019-06-05 11:41:50 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						cb4426b348
					 | 
					
						
						
							
							make h2 client connection cancellable
						
						
						
						
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
						
					 | 
					
						2019-06-05 09:45:59 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						986bef16be
					 | 
					
						
						
							
							src/backup.rs; use a macro to define PROXMOX_BACKUP_PROTOCOL_ID_V1
						
						
						
						
						
						
						
						So that we can include it in static doc strings. 
						
						
					 | 
					
						2019-06-05 08:41:20 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						c9ec0956cf
					 | 
					
						
						
							
							src/backup.rs: define const PROXMOX_BACKUP_PROTOCOL_ID_V1
						
						
						
						
						
						
					 | 
					
						2019-06-05 08:12:13 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						7773ccc11f
					 | 
					
						
						
							
							src/api2.rs: move backup api to /backup
						
						
						
						
						
						
					 | 
					
						2019-06-05 07:23:21 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						ef39bf95b3
					 | 
					
						
						
							
							src/client/http_client.rs - upload_config: improve error message
						
						
						
						
						
						
					 | 
					
						2019-06-03 10:53:09 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						ec8a9bb953
					 | 
					
						
						
							
							src/bin/proxmox-backup-client.rs: implement upload_config
						
						
						
						
						
						
					 | 
					
						2019-06-03 10:39:44 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						39d6846e1e
					 | 
					
						
						
							
							src/api2/admin/datastore/backup.rs: implement config file upload
						
						
						
						
						
						
					 | 
					
						2019-06-03 09:45:14 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						642322b433
					 | 
					
						
						
							
							src/api2/admin/datastore/backup.rs: use separate api entry points for chunk upload
						
						
						
						
						
						
						
						So that we can provide better statistics (patches follows). 
						
						
					 | 
					
						2019-05-30 09:21:19 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						39e60bd6fa
					 | 
					
						
						
							
							src/api2/admin/datastore/backup.rs: improve debug logging
						
						
						
						
						
						
					 | 
					
						2019-05-29 10:17:38 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						3dc5b2a203
					 | 
					
						
						
							
							src/client/http_client.rs: use start of chunk as offset
						
						
						
						
						
						
					 | 
					
						2019-05-28 09:21:31 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						8de20e5c1f
					 | 
					
						
						
							
							src/client/http_client.rs: code cleanup
						
						
						
						
						
						
					 | 
					
						2019-05-28 08:53:27 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						a42fa400ee
					 | 
					
						
						
							
							src/api2/admin/datastore/backup.rs: implement fixed sized chunk upload api
						
						
						
						
						
						
					 | 
					
						2019-05-28 06:18:55 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						7dd1bcac58
					 | 
					
						
						
							
							src/client/http_client.rs: correctly parse error response in download_chunk_list
						
						
						
						
						
						
					 | 
					
						2019-05-27 09:35:30 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						a1e7cff3ea
					 | 
					
						
						
							
							src/api2/admin/datastore/backup/upload_chunk.rs: rename upload_dynamic_chunk into upload_chunk
						
						
						
						
						
						
					 | 
					
						2019-05-27 07:57:43 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						771953f9eb
					 | 
					
						
						
							
							src/api2/admin/datastore/backup.rs: use smaller window sizes
						
						
						
						
						
						
					 | 
					
						2019-05-27 07:53:40 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						174ad378d8
					 | 
					
						
						
							
							src/client/http_client.rs: fix request pipelining
						
						
						
						
						
						
					 | 
					
						2019-05-27 07:24:32 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						624362226e
					 | 
					
						
						
							
							src/client/merge_known_chunks.rs: use MergedChunkInfo as input
						
						
						
						
						
						
					 | 
					
						2019-05-26 10:52:56 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						05cba08c9c
					 | 
					
						
						
							
							src/client/http_client.rs: append chunks in correct order
						
						
						
						
						
						
						
						We need to wait for response from upload_chunk. After that we can
add the chunk to the index file. 
						
						
					 | 
					
						2019-05-26 09:57:34 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						417cb0731e
					 | 
					
						
						
							
							src/api2/admin/datastore/backup.rs: verify chunk offset
						
						
						
						
						
						
						
						This clearly shows that the current approach does not work - seems we get
chunks out of order. 
						
						
					 | 
					
						2019-05-26 08:49:29 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						eb2bdd1bcc
					 | 
					
						
						
							
							src/client/http_client.rs: encode parameters inside body
						
						
						
						
						
						
						
						To avoid problems with long uris. 
						
						
					 | 
					
						2019-05-24 08:32:55 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						9bb675ec23
					 | 
					
						
						
							
							src/client/merge_known_chunks.rs: reduce RAM usage
						
						
						
						
						
						
						
						There is no need to store chunk data for known chunks. 
						
						
					 | 
					
						2019-05-24 07:42:58 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						ecb21b4794
					 | 
					
						
						
							
							src/client/merge_known_chunks.rs: avoid VecDequeu - a single buffer is enough
						
						
						
						
						
						
					 | 
					
						2019-05-24 07:36:09 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						b344461b33
					 | 
					
						
						
							
							pxar: pass feature_flags to encoder/decoder instead of individual flags
						
						
						
						
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com> 
						
						
					 | 
					
						2019-05-24 06:11:36 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						aa1b2e04fe
					 | 
					
						
						
							
							src/client/merge_known_chunks.rs: merge known chunks
						
						
						
						
						
						
						
						To decrease the number of api calls required... 
						
						
					 | 
					
						2019-05-23 12:31:09 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						91320f0879
					 | 
					
						
						
							
							src/client/http_client.rs: use ChunkInfo streams
						
						
						
						
						
						
						
						This will make out of order uploads possible... 
						
						
					 | 
					
						2019-05-23 12:31:09 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						8bea85b42e
					 | 
					
						
						
							
							src/api2/admin/datastore/backup.rs: verify file size and chunk count on close
						
						
						
						
						
						
					 | 
					
						2019-05-23 08:50:36 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						4add706092
					 | 
					
						
						
							
							src/client/: pass dummy flags for xattrs and fcaps to pxar encoder/decoder.
						
						
						
						
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com> 
						
						
					 | 
					
						2019-05-23 06:40:32 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						d6f204eda6
					 | 
					
						
						
							
							src/client/http_client.rs: re-order code - public functions first
						
						
						
						
						
						
					 | 
					
						2019-05-23 06:28:10 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						9af37c8f0e
					 | 
					
						
						
							
							src/client/http_client.rs: move low level H2 code into separate class
						
						
						
						
						
						
					 | 
					
						2019-05-22 17:28:25 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						d2c48afc6e
					 | 
					
						
						
							
							src/client/http_client.rs: code cleanup
						
						
						
						
						
						
					 | 
					
						2019-05-22 13:24:33 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						6ab34afa88
					 | 
					
						
						
							
							src/client/http_client.rs: cleanup h2 backup client
						
						
						
						
						
						
					 | 
					
						2019-05-22 13:05:51 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						553610b43e
					 | 
					
						
						
							
							src/client/http_client.rs: implement download_chunk_list
						
						
						
						
						
						
					 | 
					
						2019-05-22 09:46:02 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						97f03eff13
					 | 
					
						
						
							
							src/client/pxar_backup_stream.rs: fix docu
						
						
						
						
						
						
					 | 
					
						2019-05-20 17:29:00 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						82ab72304e
					 | 
					
						
						
							
							src/client/http_client.rs: implement upload_stream
						
						
						
						
						
						
					 | 
					
						2019-05-20 14:19:24 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						2698e8a514
					 | 
					
						
						
							
							src/client/pxar_backup_stream.rs: close pipe inside drop
						
						
						
						
						
						
					 | 
					
						2019-05-20 11:20:33 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						0c516b123d
					 | 
					
						
						
							
							src/client/pxar_backup_stream.rs: use WrappedStreamReader
						
						
						
						
						
						
						
						to make it fully async ... 
						
						
					 | 
					
						2019-05-18 15:13:31 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						c6e28b66c6
					 | 
					
						
						
							
							src/client/pxar_backup_stream.rs: use 1M pipe buffer size
						
						
						
						
						
						
					 | 
					
						2019-05-18 12:57:43 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						9c9ad941c0
					 | 
					
						
						
							
							src/client/http_client.rs: improve speed test
						
						
						
						
						
						
						
						pipeline responses to a separate async channel ... 
						
						
					 | 
					
						2019-05-18 10:55:46 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						adec8ea263
					 | 
					
						
						
							
							src/api2/admin/datastore/backup.rs: add speedtest api, improve upload speed
						
						
						
						
						
						
						
						We need to disable tcp Nagle algorythm (set_nodelay), and use larger window size for http2 
						
						
					 | 
					
						2019-05-16 10:24:23 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						25ddc15fe0
					 | 
					
						
						
							
							src/client/pipe_to_stream.rs: add missing file
						
						
						
						
						
						
					 | 
					
						2019-05-15 09:07:19 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						e3dbd41b20
					 | 
					
						
						
							
							src/client/http_client.rs: add flow control for h2 upload
						
						
						
						
						
						
					 | 
					
						2019-05-14 14:54:21 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 | 
				
			
				
					| 
						
					 | 
					
						
						
							
						
						97f22ce57d
					 | 
					
						
						
							
							src/client/http_client.rs: implement h2 upload
						
						
						
						
						
						
						
						without flow control so far ... 
						
						
					 | 
					
						2019-05-14 12:58:59 +02:00 | 
					
					
						
						
						
							
							
							
							
							
							
							
							
						
					 |