Add backups for monitoring01
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Run nix flake check / flake-check (push) Failing after 3m30s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Run nix flake check / flake-check (push) Failing after 3m30s
				
			This commit is contained in:
		| @@ -229,6 +229,7 @@ | |||||||
|             ) |             ) | ||||||
|             ./hosts/monitoring01 |             ./hosts/monitoring01 | ||||||
|             sops-nix.nixosModules.sops |             sops-nix.nixosModules.sops | ||||||
|  |             backup-helper.nixosModules.backup-helper | ||||||
|           ]; |           ]; | ||||||
|         }; |         }; | ||||||
|         jelly01 = nixpkgs.lib.nixosSystem { |         jelly01 = nixpkgs.lib.nixosSystem { | ||||||
|   | |||||||
| @@ -51,10 +51,24 @@ | |||||||
|     vim |     vim | ||||||
|     wget |     wget | ||||||
|     git |     git | ||||||
|  |     sqlite | ||||||
|   ]; |   ]; | ||||||
|  |  | ||||||
|   services.qemuGuest.enable = true; |   services.qemuGuest.enable = true; | ||||||
|  |  | ||||||
|  |   sops.secrets."backup_helper_secret" = { }; | ||||||
|  |   backup-helper = { | ||||||
|  |     enable = true; | ||||||
|  |     password-file = "/run/secrets/backup_helper_secret"; | ||||||
|  |     backup-dirs = [ | ||||||
|  |       "/var/lib/grafana/plugins" | ||||||
|  |     ]; | ||||||
|  |     backup-commands = [ | ||||||
|  |       # "grafana.db:${pkgs.sqlite}/bin/sqlite /var/lib/grafana/data/grafana.db .dump" | ||||||
|  |       "grafana.db:${pkgs.sqlite}/bin/sqlite3 /var/lib/grafana/data/grafana.db .dump" | ||||||
|  |     ]; | ||||||
|  |   }; | ||||||
|  |  | ||||||
|   # Open ports in the firewall. |   # Open ports in the firewall. | ||||||
|   # networking.firewall.allowedTCPPorts = [ ... ]; |   # networking.firewall.allowedTCPPorts = [ ... ]; | ||||||
|   # networking.firewall.allowedUDPPorts = [ ... ]; |   # networking.firewall.allowedUDPPorts = [ ... ]; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user