4264e52220 
					 
					
						
						
							
							reuse some extractor code in catalog shell  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-16 10:54:54 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6988b29bdc 
					 
					
						
						
							
							use O_EXCL when creating files during extraction  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-16 10:33:27 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d30c192589 
					 
					
						
						
							
							AsyncReadChunk: require Send  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-16 09:50:29 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7a6b549270 
					 
					
						
						
							
							dynamic index: make it hard to mess up endianess  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-15 09:19:35 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						57e50fb906 
					 
					
						
						
							
							use new Mmap helper for dynamic index  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-12 13:57:56 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4d16badf6f 
					 
					
						
						
							
							add an AsyncReadChunk trait  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-12 11:38:21 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1498659b4e 
					 
					
						
						
							
							cleanup  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-12 10:59:34 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e693818afc 
					 
					
						
						
							
							refactor time functions to tools  
						
						... 
						
						
						
						Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-10 13:31:10 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						26e78a2efb 
					 
					
						
						
							
							downgrade some FIXMEs to TODOs  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-10 11:09:23 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5444fa940b 
					 
					
						
						
							
							turn pxar::flags into bitflags, pxar::Flags  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-10 11:05:53 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fab2413741 
					 
					
						
						
							
							catalog: remove unused SenderWriter  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-10 10:42:42 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c443f58b09 
					 
					
						
						
							
							switch to external pxar and fuse crates  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-06-08 13:56:58 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a95a3fb893 
					 
					
						
						
							
							fix csum calculation of not 'chunk_size' aligned images  
						
						... 
						
						
						
						the last chunk does not have to be as big as the chunk_size,
just use the already available 'chunk_end' function which does the
correct thing
this fixes restoration of images whose sizes are not a multiple of
'chunk_size' as well
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-06-04 10:18:30 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						55919bf141 
					 
					
						
						
							
							verify_file: add missing closing parenthesis in error message  
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2020-06-03 19:10:01 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4e14781aec 
					 
					
						
						
							
							fix typo  
						
						
						
						
					 
					
						2020-06-03 06:59:43 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						add5861e8d 
					 
					
						
						
							
							typo fixes all over the place  
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2020-05-30 16:39:08 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1610c45a86 
					 
					
						
						
							
							src/client/pull.rs: also download client.log.blob  
						
						
						
						
					 
					
						2020-05-30 14:51:33 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						96d65fbcd0 
					 
					
						
						
							
							cleanup: define/use const for predefined blob file names.  
						
						
						
						
					 
					
						2020-05-30 14:04:15 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8545480a31 
					 
					
						
						
							
							src/bin/proxmox-backup-proxy.rs: add simple task scheduler for garbage collection  
						
						
						
						
					 
					
						2020-05-20 08:59:45 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						07ce44a633 
					 
					
						
						
							
							avoid compiler warnings  
						
						
						
						
					 
					
						2020-05-19 07:03:41 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7b22acd0c2 
					 
					
						
						
							
							src/config/network.rs: make it compatible with pve  
						
						... 
						
						
						
						and depend on proxmox 0.1.26 
						
						
					 
					
						2020-05-07 09:28:25 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						99641a6bbb 
					 
					
						
						
							
							garbage_collect: call fail_on_abort to abort GV when requested.  
						
						
						
						
					 
					
						2020-05-05 09:06:34 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						54552dda59 
					 
					
						
						
							
							implemnt backup ownership, improve datastore access permissions  
						
						
						
						
					 
					
						2020-04-28 10:22:25 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f7d4e4b506 
					 
					
						
						
							
							switch from failure to anyhow  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-04-17 18:43:30 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cf459b1982 
					 
					
						
						
							
							gc: log pending removals  
						
						
						
						
					 
					
						2020-04-06 09:50:40 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						32d192a952 
					 
					
						
						
							
							catalog: shell: Use the new logic including resolving symlinks for catalog  
						
						... 
						
						
						
						and remove the old unused code.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2020-02-28 08:51:01 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fee5528e59 
					 
					
						
						
							
							catalog: shell: introduce new CatalogPathStack to navigate in catalog shell.  
						
						... 
						
						
						
						This is basically a rewrite of the current logic for navigating the catalog,
but in addition allows to follow symlinks.
Following symlinks introduces the issue that generation of canonical paths
(needed in the actual pxar archive) is more complex, as symlinks have to be
resolved and loops avoided.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2020-02-28 08:50:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4145c36749 
					 
					
						
						
							
							catalog: add missing function documentation.  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2020-02-28 08:50:08 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c2f9149461 
					 
					
						
						
							
							catalog: introduce is_symlink() to check if DirEntry is a symlink.  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2020-02-28 08:49:55 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						11ee5c0563 
					 
					
						
						
							
							catalog: derive PartEq for equality checks of two DirEntry's.  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2020-02-28 08:49:39 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						536683e73b 
					 
					
						
						
							
							src/backup/dynamic_index.rs: Add LruCache for chunks.  
						
						... 
						
						
						
						In order to improve non-sequential reads of chunks as e.g. in FUSE.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2020-02-28 08:47:16 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						35ddf0b419 
					 
					
						
						
							
							catalog: shell: Introduce clear-selected command.  
						
						... 
						
						
						
						'clear-selected' allows to clear all the match patterns from the list of
patterns for a subsequent restore.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2020-02-28 08:40:55 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8e464141cf 
					 
					
						
						
							
							catalog: shell: Improve list-selected command.  
						
						... 
						
						
						
						'list-selected' now shows the filenames matching the patterns for a restore
instead of the patterns themselfs.
The patterns can be displayed by passing the '--pattern' flag.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2020-02-28 08:40:42 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						03f779c6f5 
					 
					
						
						
							
							catalog: shell: Improve output of stat command.  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2020-02-27 06:53:17 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8ce49a76da 
					 
					
						
						
							
							src/backup/backup_info.rs: fix SNAPSHOT_PATH_REGEX and GROUP_PATH_REGEX  
						
						
						
						
					 
					
						2020-02-18 13:16:35 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ba050e3788 
					 
					
						
						
							
							catalog: shell: Allow two or more successive slashes in path.  
						
						... 
						
						
						
						Two or more successive slashes should be allowed and treated as a single slash.
We also do not treat two successive slashes at the beginning of a path any
different.
Details are found here:
https://pubs.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap04.html#tag_04_11 
Signed-off-by: Christian Ebner <c.ebner@proxmox.com >
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-02-05 09:32:29 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						501f4fa220 
					 
					
						
						
							
							depend on proxmox 0.1.13, use new tty helpers from there  
						
						
						
						
					 
					
						2020-01-31 08:16:00 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d08bc483db 
					 
					
						
						
							
							use proxmox 0.1.9 with new cli command helpers  
						
						
						
						
					 
					
						2020-01-27 18:08:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a92830dc39 
					 
					
						
						
							
							src/api2/types.rs: define and use api type GarbageCollectionStatus  
						
						
						
						
					 
					
						2020-01-23 13:40:12 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						51534c8de9 
					 
					
						
						
							
							src/backup/manifest.rs: check if manifest contains files  
						
						
						
						
					 
					
						2020-01-23 11:16:12 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6abce6c2bb 
					 
					
						
						
							
							src/backup/datastore.rs: remove_backup_(group/dir) - return Error instead of io::Error  
						
						
						
						
					 
					
						2020-01-23 10:14:46 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8a1d68c8b9 
					 
					
						
						
							
							src/backup/datastore.rs: improve error messages  
						
						
						
						
					 
					
						2020-01-23 09:58:14 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						41b373eced 
					 
					
						
						
							
							src/backup/datastore.rs: new helpers  
						
						... 
						
						
						
						last_successful_backup: Returns the time of the last successful backup
group_path: Returns the absolute path for a backup_group
snapshot_path: Returns the absolute path for a backup_dir 
						
						
					 
					
						2020-01-22 15:05:47 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9ea4bce444 
					 
					
						
						
							
							bump proxmox crate to 0.1.7  
						
						... 
						
						
						
						The -sys, -tools and -api crate have now been merged into
the proxmx crate directly. Only macro crates are separate
(but still reexported by the proxmox crate in their
designated locations).
When we need to depend on "parts" of the crate later on
we'll just have to use features.
The reason is mostly that these modules had
inter-dependencies which really make them not independent
enough to be their own crates.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-01-21 13:48:37 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d973aa827c 
					 
					
						
						
							
							introduce new runtime tokio helpers  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2020-01-20 13:12:40 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4b4eba0b9e 
					 
					
						
						
							
							src/api2/pull.rs: implement delete flag for vanished groups  
						
						
						
						
					 
					
						2020-01-17 11:24:55 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						11d89239c3 
					 
					
						
						
							
							src/backup/backup_info.rs: new list_groups helper  
						
						
						
						
					 
					
						2020-01-17 10:42:03 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d2dd827877 
					 
					
						
						
							
							src/backup/catalog.rs - SenderWriter: use tokio::task::block_in_place  
						
						... 
						
						
						
						Make sure we do not block the executor. 
						
						
					 
					
						2020-01-16 14:24:15 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d0187a51a9 
					 
					
						
						
							
							src/section_config.rs - convert_to_array: optionally add digest  
						
						... 
						
						
						
						datastore::config() -> also return digest
remotes::config() -> also return digest 
						
						
					 
					
						2020-01-14 12:57:03 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6d20a29d73 
					 
					
						
						
							
							fix typo for function name load_and_decrypt_key  
						
						... 
						
						
						
						Signed-off-by: Oguz Bektas <o.bektas@proxmox.com > 
						
						
					 
					
						2020-01-13 11:14:47 +01:00