fdc@青き月の魔女
fdc@青き月の魔女
CDCloudflare Developers
Created by fdc@青き月の魔女 on 2/12/2025 in #r2
Hello, I want to upload pg data backup
Thanks for helping
12 replies
CDCloudflare Developers
Created by fdc@青き月の魔女 on 2/12/2025 in #r2
Hello, I want to upload pg data backup
I resolved it I change param to this "--checksum-algorithm=CRC32"
12 replies
CDCloudflare Developers
Created by fdc@青き月の魔女 on 2/12/2025 in #r2
Hello, I want to upload pg data backup
apiVersion: batch/v1
kind: CronJob
metadata:
name: database-backup
spec:
schedule: 0 0 * * *
jobTemplate:
spec:
template:
spec:
initContainers:
- name: pgdumper
image: postgres
command:
- "pg_dump"
- "--dbname=misskey"
- "--host=database.misskey.svc"
- "--user=misskey"
- "--password"
- "--file=/backup/backup.sql"
env:
- name: PGPASSWORD
value: misskey
volumeMounts:
- name: data
mountPath: /backup
restartPolicy: OnFailure
containers:
- name: upload
image: amazon/aws-cli
command:
- "aws"
- "s3"
- "cp"
- "/backup/backup.sql"
- "s3://misskey/backup/backup.sql"
- "--endpoint-url=https://5aaa5369426edda5aff32cc4d275826e.r2.cloudflarestorage.com"
- "--region=auto"
- "--debug"
- "--checksum-algorithm CRC32"
env:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: database-backup
key: access_key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: database-backup
key: secret_access_key
volumeMounts:
- name: data
mountPath: /backup
volumes:
- name: data
emptyDir: {}
apiVersion: batch/v1
kind: CronJob
metadata:
name: database-backup
spec:
schedule: 0 0 * * *
jobTemplate:
spec:
template:
spec:
initContainers:
- name: pgdumper
image: postgres
command:
- "pg_dump"
- "--dbname=misskey"
- "--host=database.misskey.svc"
- "--user=misskey"
- "--password"
- "--file=/backup/backup.sql"
env:
- name: PGPASSWORD
value: misskey
volumeMounts:
- name: data
mountPath: /backup
restartPolicy: OnFailure
containers:
- name: upload
image: amazon/aws-cli
command:
- "aws"
- "s3"
- "cp"
- "/backup/backup.sql"
- "s3://misskey/backup/backup.sql"
- "--endpoint-url=https://5aaa5369426edda5aff32cc4d275826e.r2.cloudflarestorage.com"
- "--region=auto"
- "--debug"
- "--checksum-algorithm CRC32"
env:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: database-backup
key: access_key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: database-backup
key: secret_access_key
volumeMounts:
- name: data
mountPath: /backup
volumes:
- name: data
emptyDir: {}
12 replies
CDCloudflare Developers
Created by fdc@青き月の魔女 on 2/12/2025 in #r2
Hello, I want to upload pg data backup
I am using v2.24.3
12 replies
CDCloudflare Developers
Created by fdc@青き月の魔女 on 2/12/2025 in #r2
Hello, I want to upload pg data backup
This error return by awscli
12 replies
CDCloudflare Developers
Created by fdc@青き月の魔女 on 2/12/2025 in #r2
Hello, I want to upload pg data backup
Traceback (most recent call last):
File "awscli/clidriver.py", line 499, in main
File "awscli/customizations/commands.py", line 152, in __call__
File "awscli/customizations/commands.py", line 203, in __call__
awscli.customizations.exceptions.ParamValidationError: Unknown options: --checksum-algorithm CRC32
Unknown options: --checksum-algorithm CRC32
Traceback (most recent call last):
File "awscli/clidriver.py", line 499, in main
File "awscli/customizations/commands.py", line 152, in __call__
File "awscli/customizations/commands.py", line 203, in __call__
awscli.customizations.exceptions.ParamValidationError: Unknown options: --checksum-algorithm CRC32
Unknown options: --checksum-algorithm CRC32
12 replies