nixos/simpcraft: Add backup
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				CI / Check, build and cache Nix flake (push) Successful in 25m52s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	CI / Check, build and cache Nix flake (push) Successful in 25m52s
				
			This commit is contained in:
		@@ -106,6 +106,21 @@ in
 | 
			
		||||
      # };
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    services = {
 | 
			
		||||
      borgbackup.jobs.simpcraft = {
 | 
			
		||||
        paths = [ "/var/lib/containers/storage/volumes/minecraft_data/_data/world" ];
 | 
			
		||||
        repo = "/var/lib/containers/backup/simpcraft";
 | 
			
		||||
        doInit = true;
 | 
			
		||||
        encryption.mode = "none";
 | 
			
		||||
        compression = "zstd,10";
 | 
			
		||||
        startAt = "*:00/10:00"; # every 10 minutes
 | 
			
		||||
        prune.keep = {
 | 
			
		||||
          within = "1d";
 | 
			
		||||
          hourly = 48;
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    my = {
 | 
			
		||||
      secrets.files = {
 | 
			
		||||
        "whale2/simpcraft.env" = {};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user