70fbac84da 
					 
					
						
						
							
							src/server/rest.rs: simplify code  
						
						
						
						
					 
					
						2019-11-22 18:44:14 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2bbd835b9b 
					 
					
						
						
							
							src/server/rest.rs: rename get_request_parameters_async to get_request_parameters  
						
						
						
						
					 
					
						2019-11-22 17:24:16 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						75a5a68944 
					 
					
						
						
							
							src/server/rest.rs - only pass ObjectSchema to get_request_parameters_async()  
						
						
						
						
					 
					
						2019-11-22 17:22:07 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ad51d02aa9 
					 
					
						
						
							
							src/server/rest.rs: cleanup async code  
						
						
						
						
					 
					
						2019-11-22 13:02:05 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						be2bb37205 
					 
					
						
						
							
							remove api_schema submodule  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-22 09:31:45 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e57e1cd82d 
					 
					
						
						
							
							move src/api_schema/config.rs -> src/server/config.rs  
						
						
						
						
					 
					
						2019-11-22 09:23:03 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8256b0e417 
					 
					
						
						
							
							src/api_schema/registry.rs: remove dead code  
						
						
						
						
					 
					
						2019-11-22 09:04:52 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3cf73c4e53 
					 
					
						
						
							
							src/bin/proxmox-backup-client.rs: impl shell subcommand for client  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-11-22 08:22:50 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f14c96ea38 
					 
					
						
						
							
							src/backup/catalog_shell.rs: impl shell to inspect and restore a snapshot via the catalog  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-11-22 07:54:04 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						38446a9551 
					 
					
						
						
							
							src/backup/readline.rs: impl wrapper for GNU readline  
						
						... 
						
						
						
						In order to provide the context needed for tab completion via the readline
callback, the needed mut ref is passed via a thread local storage key.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-11-22 07:46:24 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6dba015043 
					 
					
						
						
							
							src/backup/catalog.rs: derive Clone for DirEntry and DirEntryAttribute  
						
						... 
						
						
						
						This is needed in order to explicitly clone the values when needed in the
catalog shell implementation.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-11-22 07:15:39 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c9f002213e 
					 
					
						
						
							
							src/backup/catalog.rs: impl DirEntry::is_directory()  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-11-22 07:14:00 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d3bcc7f261 
					 
					
						
						
							
							src/pxar/sequential_decoder.rs: create all directories in target path  
						
						... 
						
						
						
						Create the full target path and not fail if an intermediate directory does not
exist.
This is needed in order to restore multiple archives via the catalog, where the
target should further contain each archive name as subdir.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-11-22 07:11:49 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b6ca690095 
					 
					
						
						
							
							src/pxar/decoder.rs: return also payload size in lookup  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-11-22 07:05:14 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						45cc157f7c 
					 
					
						
						
							
							docs: add backup reader protocol  
						
						
						
						
					 
					
						2019-11-22 06:59:37 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cad540e969 
					 
					
						
						
							
							api/compat: remove remaining api_schema references  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-21 14:53:15 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a2479cfa1a 
					 
					
						
						
							
							api/compat: drop more compat imports from api_schema.rs  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-21 14:36:28 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cc4ecf80b0 
					 
					
						
						
							
							api/compat: drop api_handler submodule  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-21 14:18:41 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4f1963d259 
					 
					
						
						
							
							api/comapt: drop schema submodule  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-21 14:17:36 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2194824f77 
					 
					
						
						
							
							api: BoxFut -> ApiFuture  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-21 14:16:37 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3d482025b3 
					 
					
						
						
							
							move api schema into proxmox::api crate  
						
						... 
						
						
						
						And leave some compat imports in api_schema.rs to get it to
build with minimal changes.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-21 14:14:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						552c225948 
					 
					
						
						
							
							sort all property lookup tables  
						
						... 
						
						
						
						Required, because we use binary sreach to find items. 
						
						
					 
					
						2019-11-21 13:32:09 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						255f378a1b 
					 
					
						
						
							
							use const api definitions  
						
						
						
						
					 
					
						2019-11-21 13:32:09 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c5946faffd 
					 
					
						
						
							
							drop md5 crate dependency  
						
						... 
						
						
						
						we already depend on openssl which also provides md5
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-14 11:19:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f569acc5e2 
					 
					
						
						
							
							drop uuid crate dependency  
						
						... 
						
						
						
						proxmox::tools now has a Uuid module using the native
libuuid.
Adds build dependency: libuuid1 (which is a Pre-Depends of
util-linux, so always installed anyway).
Drops uuid + 16 more crate dependencies.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-14 10:22:29 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b423958d8e 
					 
					
						
						
							
							catalog: fix issue with DirEntry start  
						
						... 
						
						
						
						start has to be the parent start - offset
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-11-12 17:18:13 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						780dd2b0a1 
					 
					
						
						
							
							src/backup/catalog.rs: add some docs  
						
						
						
						
					 
					
						2019-11-12 13:23:40 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6aa906b547 
					 
					
						
						
							
							src/backup/catalog.rs - CatalogReader: verify magic number  
						
						
						
						
					 
					
						2019-11-12 12:54:06 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2ec208aef5 
					 
					
						
						
							
							src/backup/catalog.rs -  CatalogReader::dump(): use root()  
						
						
						
						
					 
					
						2019-11-12 12:47:21 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8f24a9ea18 
					 
					
						
						
							
							src/backup/catalog.rs - Direntry::parse: abort if callback return false  
						
						
						
						
					 
					
						2019-11-12 11:41:44 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7d017123fd 
					 
					
						
						
							
							src/backup/catalog.rs: impl read_dir() and lookup(), refactor common code  
						
						
						
						
					 
					
						2019-11-12 11:41:44 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						dc9596de45 
					 
					
						
						
							
							src/backup/catalog.rs: move CatalogEntryType from src/pxar/catalog.rs  
						
						
						
						
					 
					
						2019-11-12 11:41:44 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						55c0b3cc7c 
					 
					
						
						
							
							src/backup/catalog.rs - DirEntry: factor out name attribute  
						
						... 
						
						
						
						And avoid allocations inside parse(). 
						
						
					 
					
						2019-11-12 11:41:44 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3f1c5b5e65 
					 
					
						
						
							
							catalog: impl std::fmt::Display trait for CatalogEntryType  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-11-12 07:00:08 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f89359c2f3 
					 
					
						
						
							
							src/backup/catalog.rs: clenup - use single impl block  
						
						
						
						
					 
					
						2019-11-10 11:38:31 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e8d8fdc61d 
					 
					
						
						
							
							src/backup/catalog.rs: remove unused code  
						
						
						
						
					 
					
						2019-11-10 11:37:06 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c74c074bfd 
					 
					
						
						
							
							src/backup/catalog.rs: write MAGIC at start of file  
						
						
						
						
					 
					
						2019-11-10 11:36:45 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						265664517a 
					 
					
						
						
							
							src/backup/catalog.rs: new parse() helper  
						
						
						
						
					 
					
						2019-11-09 14:37:33 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5d92935e03 
					 
					
						
						
							
							src/backup/catalog.rs - dump_dir: make sure we parsed the whole data block  
						
						
						
						
					 
					
						2019-11-09 13:21:20 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						12a1975af9 
					 
					
						
						
							
							src/backup/catalog.rs: store u64 compressed  
						
						... 
						
						
						
						This way catalogs get about 1/3 smaller. 
						
						
					 
					
						2019-11-09 13:07:47 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bb19af7302 
					 
					
						
						
							
							src/client/backup_reader.rs: factor out download_blob() helper  
						
						
						
						
					 
					
						2019-11-08 13:16:41 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7205050059 
					 
					
						
						
							
							src/client/backup_reader.rs: factor out download_fixed_index() helper  
						
						
						
						
					 
					
						2019-11-08 12:51:52 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c3d84a2281 
					 
					
						
						
							
							src/client/backup_reader.rs: factor out download_dynamic_index() helper  
						
						
						
						
					 
					
						2019-11-08 12:51:52 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						89245fb530 
					 
					
						
						
							
							renamed: src/backup/catalog_blob.rs -> src/backup/catalog.rs  
						
						
						
						
					 
					
						2019-11-08 10:41:00 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bf6e321744 
					 
					
						
						
							
							change catalog format, use dynamic index to store catalog.  
						
						... 
						
						
						
						In order to remove size restriction of a single blob. 
						
						
					 
					
						2019-11-08 10:35:48 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e016f9ff2f 
					 
					
						
						
							
							src/client/backup_writer.rs: rename force_close to cancel  
						
						... 
						
						
						
						And do not consume self. 
						
						
					 
					
						2019-11-08 10:34:16 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0997967d65 
					 
					
						
						
							
							do no restrict index names too much  
						
						
						
						
					 
					
						2019-11-08 10:28:14 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e66621182b 
					 
					
						
						
							
							src/pxar/decoder.rs: impl lookup for Decoder  
						
						... 
						
						
						
						Allows to lookup an entry in a directory based on the provided `DirectoryEntry`.
This is needed to navigate the filesystem based on `DirectoryEntry`s and similar
to the find_goodbye_entry() function in src/pxar/fuse.rs
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-11-06 10:00:41 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fb2554de29 
					 
					
						
						
							
							src/pxar/decoder.rs: fix wrong filename check for Decoder::restore()  
						
						... 
						
						
						
						As it turns out the original implementation was correct and the start in
`DirectoryEntry` points to the `PxarEntry` and not as wrongly stated to the
filename.
This reverts the incorrect code and adds comments to the fields clarifying this.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-11-06 09:59:35 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						33ad183a40 
					 
					
						
						
							
							src/pxar/decoder.rs: allow to pass match pattern to restore  
						
						... 
						
						
						
						In order to partially restore the archive starting from the directory provided as
parameter.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-11-05 14:19:09 +01:00