fix cron
This commit is contained in:
		
							parent
							
								
									a0b7b4af90
								
							
						
					
					
						commit
						25bc71f0f0
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -157,7 +157,7 @@ services:
 | 
			
		|||
        [[ $($(docker compose &>/dev/null); echo "$?") -eq 0 ]] || apk add --no-cache docker-cli-compose
 | 
			
		||||
        docker compose exec -T postgresql pg_dump -U ${PG_USER:-authentik} -d ${PG_DB:-authentik} -f /var/lib/postgresql/backups/${PG_DB:-authentik}.sql
 | 
			
		||||
      RUN_ON_STARTUP: "false"
 | 
			
		||||
      BACKUP_CRON: "32 2 * * *"
 | 
			
		||||
      BACKUP_CRON: "00 32 2 * * *"
 | 
			
		||||
      RESTIC_REPOSITORY: sftp://${RESTIC_REPO_USER:?Restic repository user is required}@${RESTIC_REPO_ADDRESS:?Restic repository address is requried}:${RESTIC_REPO_PORT:?Restic repository port is required}//backup
 | 
			
		||||
      RESTIC_PASSWORD: '${RESTIC_REPO_PASSWORD:?Restic repository password is required}'
 | 
			
		||||
      RESTIC_BACKUP_SOURCES: /var/lib/postgresql/backups /var/lib/authentik/backups /var/lib/lego/backups
 | 
			
		||||
| 
						 | 
				
			
			@ -187,7 +187,7 @@ services:
 | 
			
		|||
    environment:
 | 
			
		||||
      SKIP_INIT: "true"
 | 
			
		||||
      RUN_ON_STARTUP: "false"
 | 
			
		||||
      PRUNE_CRON: "47 3 * * *"
 | 
			
		||||
      PRUNE_CRON: "00 47 3 * * *"
 | 
			
		||||
      RESTIC_REPOSITORY: sftp://${RESTIC_REPO_USER:?Restic repository user is required}@${RESTIC_REPO_ADDRESS:?Restic repository address is requried}:${RESTIC_REPO_PORT:?Restic repository port is required}//backup
 | 
			
		||||
      RESTIC_PASSWORD: '${RESTIC_REPO_PASSWORD:?Restic repository password is required}'
 | 
			
		||||
      TZ: Europe/Berlin
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -124,7 +124,7 @@ services:
 | 
			
		|||
        [[ $($(docker compose &>/dev/null); echo "$?") -eq 0 ]] || apk add --no-cache docker-cli-compose
 | 
			
		||||
        docker compose exec -T postgresql pg_dump -U ${PG_USER:-authentik} -d ${PG_DB:-authentik} -f /var/lib/postgresql/backups/${PG_DB:-authentik}.sql
 | 
			
		||||
      RUN_ON_STARTUP: "false"
 | 
			
		||||
      BACKUP_CRON: "32 2 * * *"
 | 
			
		||||
      BACKUP_CRON: "00 32 2 * * *"
 | 
			
		||||
      RESTIC_REPOSITORY: sftp://${RESTIC_REPO_USER:?Restic repository user is required}@${RESTIC_REPO_ADDRESS:?Restic repository address is requried}:${RESTIC_REPO_PORT:?Restic repository port is required}//backup
 | 
			
		||||
      RESTIC_PASSWORD: '${RESTIC_REPO_PASSWORD:?Restic repository password is required}'
 | 
			
		||||
      RESTIC_BACKUP_SOURCES: /var/lib/postgresql/backups /var/lib/authentik/backups /var/lib/lego/backups
 | 
			
		||||
| 
						 | 
				
			
			@ -154,7 +154,7 @@ services:
 | 
			
		|||
    environment:
 | 
			
		||||
      SKIP_INIT: "true"
 | 
			
		||||
      RUN_ON_STARTUP: "false"
 | 
			
		||||
      PRUNE_CRON: "47 3 * * *"
 | 
			
		||||
      PRUNE_CRON: "00 47 3 * * *"
 | 
			
		||||
      RESTIC_REPOSITORY: sftp://${RESTIC_REPO_USER:?Restic repository user is required}@${RESTIC_REPO_ADDRESS:?Restic repository address is requried}:${RESTIC_REPO_PORT:?Restic repository port is required}//backup
 | 
			
		||||
      RESTIC_PASSWORD: '${RESTIC_REPO_PASSWORD:?Restic repository password is required}'
 | 
			
		||||
      TZ: Europe/Berlin
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue