commit 682c747964b2f0d892634d1a9b3c4c2b8b1c97ae Author: vickytechkey Date: Sun Sep 6 18:46:58 2026 +0530 Initial commit with backup workflow diff --git a/.forgejo/workflows/backup-to-s3.yml b/.forgejo/workflows/backup-to-s3.yml new file mode 100644 index 0000000..665ce68 --- /dev/null +++ b/.forgejo/workflows/backup-to-s3.yml @@ -0,0 +1,20 @@ +name: Scheduled S3 Code Backup +on: + schedule: + # This cron expression means "At minute 0 past every 3rd hour" + - cron: '0 */3 * * *' + # It's also helpful to include workflow_dispatch so you can trigger it manually if needed + workflow_dispatch: +jobs: + backup-code: + runs-on: ubuntu-latest + container: node:22 + steps: + - name: Checkout Code + uses: actions/checkout@v3 + - name: Install AWS CLI + run: | + apt-get update && apt-get install -y awscli + - name: Sync entire repository to S3 Backup Bucket + run: | + aws s3 sync . s3://forgeocodespace --delete