mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			361 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			361 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # Datbase backups
 | |
| When upgrading to new major version of Unleash it is advised to do a 
 | |
| full database backup to ease rollback in case of failures. 
 | |
| 
 | |
| 1. Create a database backup:
 | |
| 
 | |
| ```
 | |
| pg_dump --clean -U unleash_user -W -h localhost unleash > unleash-db.dump
 | |
| 
 | |
| ```
 | |
| 
 | |
| 2. Restore from a backup:
 | |
| 
 | |
| ```
 | |
| psql -U unleash_user -W -h localhost unleash < unleash-db.dump
 | |
| ```
 |