file-restore: add binary and basic commands
For now it only supports 'list' and 'extract' commands for 'pxar.didx' files. This should be the foundation for a general file-restore interface that is shared with block-level snapshots. This is packaged as a seperate .deb file, since for block level restore it will need to depend on pve-qemu-kvm, which we want to seperate from proxmox-backup-client. [original code for proxmox-file-restore.rs] Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> [code cleanups/clippy, use helpers::list_dir_content/ArchiveEntry, no /block subdir for .fidx files, seperate binary and package] Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
		
				
					committed by
					
						
						Thomas Lamprecht
					
				
			
			
				
	
			
			
			
						parent
						
							42355b11a4
						
					
				
				
					commit
					76425d84b3
				
			
							
								
								
									
										12
									
								
								debian/control
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								debian/control
									
									
									
									
										vendored
									
									
								
							@ -53,6 +53,7 @@ Build-Depends: debhelper (>= 11),
 | 
			
		||||
 librust-syslog-4+default-dev,
 | 
			
		||||
 librust-tokio-1+default-dev,
 | 
			
		||||
 librust-tokio-1+fs-dev,
 | 
			
		||||
 librust-tokio-1+io-std-dev,
 | 
			
		||||
 librust-tokio-1+io-util-dev,
 | 
			
		||||
 librust-tokio-1+macros-dev,
 | 
			
		||||
 librust-tokio-1+net-dev,
 | 
			
		||||
@ -145,3 +146,14 @@ Depends: libjs-extjs,
 | 
			
		||||
Architecture: all
 | 
			
		||||
Description: Proxmox Backup Documentation
 | 
			
		||||
 This package contains the Proxmox Backup Documentation files.
 | 
			
		||||
 | 
			
		||||
Package: proxmox-file-restore
 | 
			
		||||
Architecture: any
 | 
			
		||||
Depends: ${misc:Depends},
 | 
			
		||||
         ${shlibs:Depends},
 | 
			
		||||
         proxmox-backup-restore-image,
 | 
			
		||||
Recommends: pve-qemu-kvm (>= 5.0.0-9),
 | 
			
		||||
Description: PBS single file restore for pxar and block device backups
 | 
			
		||||
 This package contains the Proxmox Backup single file restore client for
 | 
			
		||||
 restoring individual files and folders from both host/container and VM/block
 | 
			
		||||
 device backups. It includes a block device restore driver using QEMU.
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										11
									
								
								debian/control.in
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								debian/control.in
									
									
									
									
										vendored
									
									
								
							@ -41,3 +41,14 @@ Depends: libjs-extjs,
 | 
			
		||||
Architecture: all
 | 
			
		||||
Description: Proxmox Backup Documentation
 | 
			
		||||
 This package contains the Proxmox Backup Documentation files.
 | 
			
		||||
 | 
			
		||||
Package: proxmox-file-restore
 | 
			
		||||
Architecture: any
 | 
			
		||||
Depends: ${misc:Depends},
 | 
			
		||||
         ${shlibs:Depends},
 | 
			
		||||
         proxmox-backup-restore-image,
 | 
			
		||||
Recommends: pve-qemu-kvm (>= 5.0.0-9),
 | 
			
		||||
Description: PBS single file restore for pxar and block device backups
 | 
			
		||||
 This package contains the Proxmox Backup single file restore client for
 | 
			
		||||
 restoring individual files and folders from both host/container and VM/block
 | 
			
		||||
 device backups. It includes a block device restore driver using QEMU.
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										1
									
								
								debian/proxmox-file-restore.bash-completion
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								debian/proxmox-file-restore.bash-completion
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
debian/proxmox-file-restore.bc proxmox-file-restore
 | 
			
		||||
							
								
								
									
										8
									
								
								debian/proxmox-file-restore.bc
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								debian/proxmox-file-restore.bc
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,8 @@
 | 
			
		||||
# proxmox-file-restore bash completion
 | 
			
		||||
 | 
			
		||||
# see http://tiswww.case.edu/php/chet/bash/FAQ
 | 
			
		||||
# and __ltrim_colon_completions() in /usr/share/bash-completion/bash_completion
 | 
			
		||||
# this modifies global var, but I found no better way
 | 
			
		||||
COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
 | 
			
		||||
 | 
			
		||||
complete -C 'proxmox-file-restore bashcomplete' proxmox-file-restore
 | 
			
		||||
							
								
								
									
										3
									
								
								debian/proxmox-file-restore.install
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								debian/proxmox-file-restore.install
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
usr/bin/proxmox-file-restore
 | 
			
		||||
usr/share/man/man1/proxmox-file-restore.1
 | 
			
		||||
usr/share/zsh/vendor-completions/_proxmox-file-restore
 | 
			
		||||
							
								
								
									
										7
									
								
								debian/rules
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								debian/rules
									
									
									
									
										vendored
									
									
								
							@ -52,8 +52,11 @@ override_dh_dwz:
 | 
			
		||||
 | 
			
		||||
override_dh_strip:
 | 
			
		||||
	dh_strip
 | 
			
		||||
	for exe in $$(find debian/proxmox-backup-client/usr \
 | 
			
		||||
	  debian/proxmox-backup-server/usr -executable -type f); do \
 | 
			
		||||
	for exe in $$(find \
 | 
			
		||||
	    debian/proxmox-backup-client/usr \
 | 
			
		||||
	    debian/proxmox-backup-server/usr \
 | 
			
		||||
	    debian/proxmox-file-restore/usr \
 | 
			
		||||
	    -executable -type f); do \
 | 
			
		||||
	  debian/scripts/elf-strip-unused-dependencies.sh "$$exe" || true; \
 | 
			
		||||
	done
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user