dom0: add option for encryption to qvm-backup
This commit is contained in:
		
							parent
							
								
									4ed00f123d
								
							
						
					
					
						commit
						1d2990e938
					
				| @ -40,6 +40,8 @@ def main(): | ||||
|                        help="Force to run, even with root privileges") | ||||
|     parser.add_option ("-d", "--dest-vm", action="store", dest="appvm", | ||||
|                        help="The AppVM to send backups to") | ||||
|     parser.add_option ("-e", "--encrypt", action="store_true", dest="encrypt", default=False, | ||||
|                        help="Encrypts the backup") | ||||
| 
 | ||||
|     (options, args) = parser.parse_args () | ||||
| 
 | ||||
| @ -74,7 +76,7 @@ def main(): | ||||
|         exit (0) | ||||
| 
 | ||||
|     try: | ||||
|         backup_do_copy(options.appvm, base_backup_dir, files_to_backup, progress_callback=print_progress) | ||||
|         backup_do_copy(options.appvm, base_backup_dir, files_to_backup, progress_callback=print_progress, encrypt=options.encrypt) | ||||
|     except QubesException as e: | ||||
|         print >>sys.stderr, "ERROR: %s" % str(e) | ||||
|         exit(1) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Andrew Sorensen
						Andrew Sorensen