Sitelet https://github.com/wxl1202/rclone
Skip to content
wxl1202Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

GitHub Actions for Rclone

This Action wraps Rclone to enable syncing files and directories to and from different cloud storage providers.

Features

  • "rsync for cloud storage"
  • Sync to and from different cloud storage providers.
  • Backup files or deploy artifacts to remote storage.

Usage

GitHub Actions

env:
  HOST: ${{ secrets.GCP_SFTP_HOST }}
  USERNAME: {ACCOUNT}
  KEYPASS: ${{ secrets.GCP_SFTP_KEY }}
  PATH_FROM: {PATH}
  PATH_DEST: {PATH}

jobs:
  deployment:
    #needs: [codescanner]
    name: File synchronize via SFTP
    runs-on: ubuntu-latest
    #environment: {stage/production}

    steps:
    - id: repo-checkout
      name: Checkout repository
      uses: actions/checkout@v3
      with:
        fetch-depth: 0

    - id: rclone-files
      name: File synchronize via Rclone
      uses: PChome24h/action_rclone@master
      env:
        RCLONE_SFTP_HOST: ${{ env.HOST }}
        RCLONE_SFTP_USER: ${{ env.USERNAME }}
        RCLONE_SFTP_KEY_PEM: ${{ env.KEYPASS }}
        RCLONE_SFTP_SHELL_TYPE: 'none'
        RCLONE_SFTP_IDLE_TIMEOUT: 0m10s
      with:
        args: sync --progress ${{ env.PATH_FROM }} :sftp:${{ env.PATH_DEST }}

Reference

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages