feat: enable Google Photos Library API in Terraform and create gdrive-to-gphotos sync Job
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user