Skip to content

Commit

Permalink
feat: add ferry DB restore workflow and update user DB backup script
Browse files Browse the repository at this point in the history
  • Loading branch information
neilsong committed Jan 12, 2025
1 parent b69912c commit 213d905
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ferry_db_restore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Ferry DB Snapshot

on:
workflow_dispatch:

jobs:
backup:
runs-on: self-hosted
steps:
- name: Ferry DB Restore
run: |
cd /home/app/infra/db
git pull
bash restore-ferry.sh
1 change: 1 addition & 0 deletions .github/workflows/user_db_backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ jobs:
- name: Backup User DB
run: |
cd /home/app/infra/db
git pull
bash cron_script.sh

0 comments on commit 213d905

Please sign in to comment.