Files
infrapuzzle/k8s/backup/job-gdrive-to-gphotos.yaml
T
Moritz Graf 18a7292844 fix(dns,k8s): add moritzgraf.de apex A record, modernize ingress, and resolve cluster alerts
- terraform: add ovh_domain_zone_record.moritzgraf_domain pointing to cluster IP
- k8s/web: modernize Ingress to networking.k8s.io/v1 with traefik class and auto-renew TLS certificate
- k8s/backup: set activeDeadlineSeconds and backoffLimit: 3 on gdrive-to-gphotos, clean dead pods
- k8s/openclaw: set failedJobsHistoryLimit: 1 on wiki backup cronjob and purge stale failed job
- k8s/coder: increase postgresql CPU limit to 500m to eliminate CFS CPU throttling
2026-09-19 18:19:54 +02:00

30 lines
874 B
YAML

apiVersion: batch/v1
kind: Job
metadata:
name: gdrive-to-gphotos
namespace: backup
spec:
template:
spec:
containers:
- name: sync-agent
image: iptizer/swiss
volumeMounts:
- name: rclone-gdrive-config
mountPath: /rclone.conf
subPath: "rclone.conf"
command:
- "/bin/bash"
- "-c"
args:
- |
echo "Starting copy operation from Google Drive to Google Photos..."
cd /home/devbox && devbox run rclone --config /rclone.conf -v --stats 10s --stats-one-line copy --drive-root-folder-id="1f43AtWvfb7qd-eGr9nw-8vHraA5k9mVl" gdrive: "gphotos:album/All pictures of the last years"
volumes:
- name: rclone-gdrive-config
configMap:
name: rclone-gdrive-config
restartPolicy: Never
activeDeadlineSeconds: 86400
backoffLimit: 3