mirror of
				https://github.com/mail-in-a-box/mailinabox.git
				synced 2025-11-03 19:30:54 +00:00 
			
		
		
		
	add a way to dump backup status from the command line
This commit is contained in:
		
							parent
							
								
									b32cb6229b
								
							
						
					
					
						commit
						161d096139
					
				@ -437,6 +437,11 @@ if __name__ == "__main__":
 | 
				
			|||||||
		# are readable, and b) report if they are up to date.
 | 
							# are readable, and b) report if they are up to date.
 | 
				
			||||||
		run_duplicity_verification()
 | 
							run_duplicity_verification()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						elif sys.argv[-1] == "--status":
 | 
				
			||||||
 | 
							# Show backup status.
 | 
				
			||||||
 | 
							ret = backup_status(load_environment())
 | 
				
			||||||
 | 
							print(rtyaml.dump(ret["backups"]))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	else:
 | 
						else:
 | 
				
			||||||
		# Perform a backup. Add --full to force a full backup rather than
 | 
							# Perform a backup. Add --full to force a full backup rather than
 | 
				
			||||||
		# possibly performing an incremental backup.
 | 
							# possibly performing an incremental backup.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user