mirror of
				https://github.com/fspc/bike-database.git
				synced 2025-10-31 00:35:35 -04:00 
			
		
		
		
	lk | adds script to restore database
This commit is contained in:
		
							parent
							
								
									ef63d964d4
								
							
						
					
					
						commit
						8097cd232d
					
				
							
								
								
									
										7
									
								
								bin/restore-database.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								bin/restore-database.sh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | ||||
| #!/usr/bin/env bash | ||||
| 
 | ||||
| heroku pg:backups capture --app recyclery-database | ||||
| sleep 3 | ||||
| curl -o tmp/latest.dump `heroku pg:backups public-url --app recyclery-database` | ||||
| pg_restore --verbose --clean --no-acl --no-owner -h localhost -U louisk -d db/bikedb_development tmp/latest.dump | ||||
| 
 | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user