645995634a 
					 
					
						
						
							
							src/api2/config/datastore.rs - create: pass uid and gid instead of User  
						
						
						
						
					 
					
						2019-12-20 09:23:58 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e67770d496 
					 
					
						
						
							
							src/backup/chunk_store.rs - create: pass User instead of CreateOptions  
						
						
						
						
					 
					
						2019-12-20 09:11:40 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bca9093520 
					 
					
						
						
							
							api/ui: datastore: allow to set simple comment  
						
						... 
						
						
						
						for now forbid all control characters[0] in the comment value, the
section config writer cannot cope with newlines in the value, it
writes them out literally, allowing "injection" or breaking the whole
config.
In the webinterface use also a textfield, not a textarea.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-19 17:58:01 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e88e3c3a35 
					 
					
						
						
							
							ui: datastore: minor UX improvements and whitepsace cleanup  
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-19 17:44:20 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e9af5b4a29 
					 
					
						
						
							
							ui: do *not* close panel when triggering datastore GC  
						
						... 
						
						
						
						this broke the view, let the panel disappear until one switched to
another and back again, let's just no close main-view panels :)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-19 17:42:33 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d649e17eb7 
					 
					
						
						
							
							ui: use fa-archive symbol for datastore navigation tree entry  
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-19 16:49:40 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						afdcfb5bc9 
					 
					
						
						
							
							let ChunkStore::create take CreateOptions  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-12-19 13:14:49 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						47d4712152 
					 
					
						
						
							
							src/bin/proxmox-backup-manager.rs: add task management cli  
						
						
						
						
					 
					
						2019-12-19 11:27:36 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d6c4a1198a 
					 
					
						
						
							
							src/bin/proxmox-backup-client.rs: use async fn  
						
						
						
						
					 
					
						2019-12-19 11:20:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f74a03da1f 
					 
					
						
						
							
							remove tools::getpwnam_ugid, impl. crate::backup::backup_user()  
						
						... 
						
						
						
						And use new nix::unistd::User struct. 
						
						
					 
					
						2019-12-19 10:20:13 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8bf4559b4e 
					 
					
						
						
							
							update to nix 0.16  
						
						
						
						
					 
					
						2019-12-19 09:29:44 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						769f8c9998 
					 
					
						
						
							
							src/bin/proxmox-backup-manager.rs: connect to daemon to execute GC  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com > 
						
						
					 
					
						2019-12-19 08:45:27 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						25de1c8005 
					 
					
						
						
							
							src/client/backup_repo.rs: impl. new()  
						
						
						
						
					 
					
						2019-12-19 08:44:38 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						94913f35ca 
					 
					
						
						
							
							src/bin/proxmox-backup-client.rs - start_garbage_collection: add missing output-format parameter  
						
						
						
						
					 
					
						2019-12-19 07:57:53 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						868c585219 
					 
					
						
						
							
							src/backup/datastore.rs: avoid divide by zero  
						
						
						
						
					 
					
						2019-12-19 07:14:23 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						217170e11e 
					 
					
						
						
							
							src/server/worker_task.rs: set worker thread name  
						
						... 
						
						
						
						This gives better logs on thread panic... 
						
						
					 
					
						2019-12-19 07:07:39 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7e210bd0b4 
					 
					
						
						
							
							src/backup/chunk_store.rs: create lock file with correct owner  
						
						
						
						
					 
					
						2019-12-19 06:55:53 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4897426cea 
					 
					
						
						
							
							ui: allow to create datastore  
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-18 21:32:00 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2e75b6d8bf 
					 
					
						
						
							
							ui: trailing whitespace cleanup  
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-18 19:21:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9710e5d00e 
					 
					
						
						
							
							ui: select tree item from history url on initial load  
						
						... 
						
						
						
						or fallback to dashboard
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-18 19:19:37 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						84b9eced26 
					 
					
						
						
							
							ui: add simple dashboard  
						
						... 
						
						
						
						just a starting point, code ported initially over from PMG, some
minor things are handled differently though, we have not multiple
nodes (for now) so it's very 'localhost' centric.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-18 17:29:07 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2337df7b3d 
					 
					
						
						
							
							api2: add very basic 'status/usage' endpoint for nodes  
						
						... 
						
						
						
						For returning the nodes basic "usage status", for now one gets memory
and CPU utilization.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-18 17:24:32 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6060a57578 
					 
					
						
						
							
							debian/: run wrap-and-sort  
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-18 17:22:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						22b20d04b4 
					 
					
						
						
							
							docs: fix typo in introduction.rst  
						
						... 
						
						
						
						Signed-off-by: Oguz Bektas <o.bektas@proxmox.com > 
						
						
					 
					
						2019-12-18 17:14:58 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bce023c57c 
					 
					
						
						
							
							src/tools.rs: fix typo  
						
						
						
						
					 
					
						2019-12-18 14:29:29 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7a550fdc76 
					 
					
						
						
							
							Makefile: remove zstd-sys  
						
						
						
						
					 
					
						2019-12-18 13:11:02 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3c50a9d82e 
					 
					
						
						
							
							administration-guide.rst: fix catalog command syntax  
						
						
						
						
					 
					
						2019-12-18 12:58:18 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0b97bc6158 
					 
					
						
						
							
							src/backup/chunk_store.rs: use proxmox::tools::fs::create_path  
						
						
						
						
					 
					
						2019-12-18 12:26:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7a00f8df12 
					 
					
						
						
							
							drop our zstd-sys replacement  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-12-18 12:23:20 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f8ec1473be 
					 
					
						
						
							
							src/config/datastore.rs: use backup gid instead of uid  
						
						
						
						
					 
					
						2019-12-18 12:21:44 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						864d17c4e2 
					 
					
						
						
							
							ui/css: adapt look-and-feel to PMG one  
						
						... 
						
						
						
						mainly the navigation tree
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-18 12:17:25 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						feaa1ad35f 
					 
					
						
						
							
							replace file_set_contents with replace_file  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-12-18 11:16:04 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a66e7920dc 
					 
					
						
						
							
							src/api2/config/datastore.rs: set protected flags for create/delete API  
						
						
						
						
					 
					
						2019-12-18 10:52:45 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f0db500808 
					 
					
						
						
							
							src/api2/config/datastore.rs: fix api docu  
						
						
						
						
					 
					
						2019-12-18 10:48:19 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						424766bc3b 
					 
					
						
						
							
							src/config/datastore.rs: change file owner/permissions  
						
						... 
						
						
						
						owner(root) => read and write
group(backup) => read only 
						
						
					 
					
						2019-12-18 10:41:58 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c07b458cac 
					 
					
						
						
							
							datastore: set correct owner on datastore.cfg  
						
						... 
						
						
						
						since manager runs as root, we have to specify backup:root owner while
saving config.
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com > 
						
						
					 
					
						2019-12-17 16:59:10 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c99af07876 
					 
					
						
						
							
							ui: do not log ticket into console  
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-17 15:44:34 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						323515c24c 
					 
					
						
						
							
							ui: fixup renewing ticket success calback  
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-17 15:42:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						14f1e63067 
					 
					
						
						
							
							chunk_store: create parent directories  
						
						... 
						
						
						
						'datastore create storename /path/to/dir/that/may/not/exist' should
work.
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com > 
						
						
					 
					
						2019-12-17 15:39:42 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ebfb2df22b 
					 
					
						
						
							
							binary_search_tree: add additional doctest for search_binary_tree_by()  
						
						... 
						
						
						
						Make sure a start indexes larger or equal to the array size results in a return
value of `None`.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-12-17 15:37:02 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						48f6d67764 
					 
					
						
						
							
							binary_search_tree: fix off by one error in search_binary_tree_by()  
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-12-17 14:57:34 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						38d9a69875 
					 
					
						
						
							
							catalog: decoder and shell: fix incorrect logic in find matching  
						
						... 
						
						
						
						The find matching was incorrectly performed starting from the parent directroy
and not as intended from the entries of the parent directory.
Further, the match pattern passed from the catalog shell contains the absolute
path of the search entry point as prefix, so find() must always start from the
archive root. This is because the match pattern has to be stored in the selected
list for a subsequent restore-selected command in the shell.
All matching paths are shown as absolute paths with all contents in the subdir,
equal to what would be restored by the given pattern.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-12-17 14:57:34 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8af272fd14 
					 
					
						
						
							
							ui: show login window if we get a 401 auth exception  
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-17 14:45:13 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a602faeb98 
					 
					
						
						
							
							ui: re-new ticket every 15 minutes  
						
						... 
						
						
						
						Like we do it in PVE/PMG
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-17 14:44:28 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6cc8abbbd5 
					 
					
						
						
							
							proxmox-backup-proxy.service: order after proxmox-backup.service  
						
						... 
						
						
						
						Ensures we've got the authkey available.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-17 14:11:25 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						81cc71c0d7 
					 
					
						
						
							
							use proxmox-mini-journalreader to display syslog  
						
						
						
						
					 
					
						2019-12-17 14:06:48 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						20197f7cf5 
					 
					
						
						
							
							src/api2/node/syslog.rs: use api macro  
						
						
						
						
					 
					
						2019-12-17 13:26:49 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						87b4d953bf 
					 
					
						
						
							
							ui: main init: set username info  
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-17 13:00:17 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3a84100428 
					 
					
						
						
							
							ui login: default to root@pam user and focus password field  
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com > 
						
						
					 
					
						2019-12-17 11:35:39 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7f816d468a 
					 
					
						
						
							
							install ext6-pbs.css  
						
						
						
						
					 
					
						2019-12-17 11:34:29 +01:00