feat: enable Google Photos Library API in Terraform and create gdrive-to-gphotos sync Job

This commit is contained in:
Moritz Graf
2026-07-18 21:41:33 +02:00
parent b4cf4c0961
commit 2b0575364b
5 changed files with 158 additions and 3 deletions
+28
View File
@@ -0,0 +1,28 @@
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
backoffLimit: 1