d4736445fe 
					 
					
						
						
							
							server/rest.rs: add method to log message  
						
						
						
						
					 
					
						2019-02-15 10:16:12 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f02e6fc478 
					 
					
						
						
							
							api2/admin/datastore/catar.rs: simplify/fix debug message  
						
						
						
						
					 
					
						2019-02-15 10:04:37 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						44c00c0dfd 
					 
					
						
						
							
							server/rest.rs: log full error messages  
						
						
						
						
					 
					
						2019-02-15 09:55:12 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7171b3e079 
					 
					
						
						
							
							server/rest.rs: use a protocol extension to avoid double log  
						
						... 
						
						
						
						Instead of modifying the response header itself. 
						
						
					 
					
						2019-02-14 16:04:24 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7e03988caf 
					 
					
						
						
							
							avoid double logging of proxied requests  
						
						
						
						
					 
					
						2019-02-14 13:28:41 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						af6f80d3db 
					 
					
						
						
							
							Revert "backup/datastore: fn open is a private implementation detail"  
						
						... 
						
						
						
						This reverts commit 3dacd9a660 
						
						
					 
					
						2019-02-14 13:13:49 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						78a1fa6722 
					 
					
						
						
							
							src/server/rest.rs: log failed requests  
						
						
						
						
					 
					
						2019-02-14 13:07:34 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2cc90617dd 
					 
					
						
						
							
							tools/fs: mark ReadDir as Send  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 12:37:31 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						62f2422f6a 
					 
					
						
						
							
							backup/chunk_store: verify chunk file names  
						
						... 
						
						
						
						get_chunk_iterator() should skip over files which aren't an
actual chunk
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 12:37:31 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3dacd9a660 
					 
					
						
						
							
							backup/datastore: fn open is a private implementation detail  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 12:37:31 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9739aca41f 
					 
					
						
						
							
							backup/chunk_store: open base dir in get_chunk_iterator  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 12:37:31 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						db4868ef4f 
					 
					
						
						
							
							src/client/backup_repo.rs -  improve docu  
						
						
						
						
					 
					
						2019-02-14 11:17:08 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						151c6ce27d 
					 
					
						
						
							
							src/client.rs: improve library structure and docu  
						
						
						
						
					 
					
						2019-02-14 11:11:39 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						18a1aa4858 
					 
					
						
						
							
							make: use --no-deps for cargo doc  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:17:10 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						dd1bfe6c12 
					 
					
						
						
							
							tools/timer: add module documentation  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:13:42 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c7f481b642 
					 
					
						
						
							
							backup: replace ChunkIterator  
						
						... 
						
						
						
						Instead we just build the iterator using our
tools::fs::read_subdir iterator as follows:
Use the index range (0..0x10000) as an iterator, map() it
to yield a subdirectory iterator for each index, then
flatten it.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						121f18efb7 
					 
					
						
						
							
							tools: use scan_subdir iterator for scandir  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						32286b039c 
					 
					
						
						
							
							tools/fs: add file_name_utf8_unchecked shortcut  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						806d7a6a35 
					 
					
						
						
							
							tools/fs: change scan_subdir to use filter_file_name_regex  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						53e1e7ca72 
					 
					
						
						
							
							tools/fs: add filter_file_name_regex to FileIterOps  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						23fba9d777 
					 
					
						
						
							
							tools/fs: add FileIterOps trait and FileTypeFilter  
						
						... 
						
						
						
						FileIterOps will provide operations on file entry iterators.
For now this provides a file type filter.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1db416150d 
					 
					
						
						
							
							tools/fs: let ReadDir iterator yield ReadDirEntry  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b12505da69 
					 
					
						
						
							
							tools/fs: add ReadDirEntry helper  
						
						... 
						
						
						
						This wraps nix::dir::Entry with the parent and additionally
exposes the parent directory file descriptor since we need
it to perform openat().
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a25f863afd 
					 
					
						
						
							
							tools/fs: add scan_subdir helper  
						
						... 
						
						
						
						This filters the results of read_subdir with a regex.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b4d5787de9 
					 
					
						
						
							
							tools: start fs submodule, add read_subdir  
						
						... 
						
						
						
						This creates an iterator relative to a RawFd via
nix::dir::Dir over nix::dir::Entrys.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0dffe3f99a 
					 
					
						
						
							
							src/client/http_client.rs: try to login  
						
						... 
						
						
						
						use an environment var to store passphrase (PBS_PASSWORD) 
						
						
					 
					
						2019-02-13 14:31:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						33d64b81e0 
					 
					
						
						
							
							src/bin/proxmox-backup-client.rs: define and use BackupRepository  
						
						
						
						
					 
					
						2019-02-13 12:30:52 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4a3f65172c 
					 
					
						
						
							
							client: use hyper-tls for now  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-13 11:03:09 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						42d6e4fb05 
					 
					
						
						
							
							tools: borrow: implement Deref for Tied  
						
						... 
						
						
						
						Eg. if you have an x: Tied<Dir, Iterator> now you can simply
call x.next() as it'll dereference to the Iterator.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-13 11:03:09 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						541a302224 
					 
					
						
						
							
							api2/admin/datastore/catar.rs: use nested file extensions  
						
						... 
						
						
						
						i.e. archive.catar.didx 
						
						
					 
					
						2019-02-13 10:37:00 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e5064ba607 
					 
					
						
						
							
							simplify backup lib structure (pub use xxx:*), improve doc  
						
						
						
						
					 
					
						2019-02-12 14:13:31 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d78345bcfc 
					 
					
						
						
							
							src/backup.rs - improve doc  
						
						
						
						
					 
					
						2019-02-12 13:27:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						93d5d77952 
					 
					
						
						
							
							rename ArchiveIndex to DynamicIndex  
						
						... 
						
						
						
						also changed the file extension from .aidx to .didx 
						
						
					 
					
						2019-02-12 12:05:33 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						91a905b6dd 
					 
					
						
						
							
							rename ImageIndex to FixedIndex  
						
						... 
						
						
						
						also changed the file extension fron .iidx to .fidx 
						
						
					 
					
						2019-02-12 11:50:45 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						82bc0ad40c 
					 
					
						
						
							
							backup: fixup warnings and readd lost file type check  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-12 10:43:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9349d2a1d2 
					 
					
						
						
							
							backup: cleanup long lines  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-12 10:39:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fdd71f5286 
					 
					
						
						
							
							backup: use ChunkIterator for sweep_unused_chunks  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-12 10:39:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c9e7f4dc8b 
					 
					
						
						
							
							backup: add optional progress callback to ChunkIterator  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-12 10:39:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4070096c6a 
					 
					
						
						
							
							backup: add ChunkIterator  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-12 10:39:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6ed25cbe3a 
					 
					
						
						
							
							tools: add Tied value  
						
						... 
						
						
						
						Tie two dependent values together, such as a nix::Dir with
its nix::dir::Iter<'a> where 'a is tied to the Dir's
lifetime, making it otherwise impossible to return them or
store them in a struct.
Alternatively we could try the 'rental' crate.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-12 10:39:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9ac1045c7b 
					 
					
						
						
							
							bin: manager: fixup datastore parameter name  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-12 10:39:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8f8d5a420c 
					 
					
						
						
							
							avoid compiler warning  
						
						
						
						
					 
					
						2019-02-11 15:12:01 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						aa5a4060ab 
					 
					
						
						
							
							bin/proxmox-backup-api.rs: improve error handling  
						
						
						
						
					 
					
						2019-02-11 15:11:42 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4223d9f800 
					 
					
						
						
							
							bin/proxmox-backup-proxy.rs: improve error handling  
						
						
						
						
					 
					
						2019-02-11 14:43:26 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ace9e3531a 
					 
					
						
						
							
							access: use proxmox-backup-auth for pam  
						
						... 
						
						
						
						allows customization via /etc/pam.d/proxmox-backup-auth
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-07 13:40:22 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						517dfc4258 
					 
					
						
						
							
							add generated files to .gitignore  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-05 14:17:30 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						13f8310cac 
					 
					
						
						
							
							api2: time: use /etc/localtime as fallback  
						
						... 
						
						
						
						in case there is no /etc/timezone
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-05 14:14:56 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a7cac14ed9 
					 
					
						
						
							
							tools: use std::fs::read for file_get_contents  
						
						... 
						
						
						
						Until we add the extra options like we have in pve, just use
the already existing (since 1.26) shortcut.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-04 15:35:32 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e937034c86 
					 
					
						
						
							
							remove some rather inconvenient debug output  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-04 15:34:38 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9d02e5c38a 
					 
					
						
						
							
							proxy: use <configdir>/server.pfx for tls  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-04 15:19:32 +01:00