enable backups for rackserv
This commit is contained in:
		
							parent
							
								
									5d7ed51f99
								
							
						
					
					
						commit
						2fea088019
					
				
					 4 changed files with 42 additions and 0 deletions
				
			
		
							
								
								
									
										18
									
								
								sys/machines/rackserv/backups.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								sys/machines/rackserv/backups.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| {config, ...}: { | ||||
|   services.restic.backups.rackserv = { | ||||
|     initialize = true; | ||||
|     inhibitsSleep = true; | ||||
|     repository = "rest:http://nixdesk:8000/rackserv"; | ||||
|     passwordFile = config.sops.secrets.restic-password.path; | ||||
|     timerConfig = { | ||||
|       OnCalendar = "18:00"; | ||||
|       Persistent = true; | ||||
|       RandomizedDelaySec = "1h"; | ||||
|     }; | ||||
|     pruneOpts = [ | ||||
|       "--keep-daily 7" | ||||
|       "--keep-weekly 5" | ||||
|       "--keep-monthly 3" | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
|  | @ -11,6 +11,7 @@ | |||
|       ./disk-config.nix | ||||
|       ./fail2ban.nix | ||||
|       ./wireguard-server.nix | ||||
|       ./backups.nix | ||||
|     ] | ||||
|     ++ (map (x: systemProfiles + x) [ | ||||
|       /secrets/default.nix | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue