All Projects → Pendect → action-rsyncer

Pendect / action-rsyncer

Licence: MIT license
Rsync GitHub Action

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to action-rsyncer

Vscode Rsync
rsync extension for visual studio code
Stars: ✭ 68 (+36%)
Mutual labels:  rsync
Yajsync
A Java implementation of the rsync protocol
Stars: ✭ 134 (+168%)
Mutual labels:  rsync
Go Fastdfs
go-fastdfs 是一个简单的分布式文件系统(私有云存储),具有无中心、高性能,高可靠,免维护等优点,支持断点续传,分块上传,小文件合并,自动同步,自动修复。Go-fastdfs is a simple distributed file system (private cloud storage), with no center, high performance, high reliability, maintenance free and other advantages, support breakpoint continuation, block upload, small file merge, automatic synchronization, automatic r…
Stars: ✭ 2,923 (+5746%)
Mutual labels:  rsync
Rsync
rsync dependency-free wrapper library for PHP7.1+
Stars: ✭ 82 (+64%)
Mutual labels:  rsync
Mainframer Intellij Plugin
An intellij idea plugin for mainframer project
Stars: ✭ 125 (+150%)
Mutual labels:  rsync
System Tar And Restore
Backup and Restore your system using tar or Transfer it with rsync
Stars: ✭ 170 (+240%)
Mutual labels:  rsync
Rsync
In the process of being transitioned to a node.js action.
Stars: ✭ 53 (+6%)
Mutual labels:  rsync
go-sync
🔁 CLI synchronization utility to sync project files and databases for your local project with SSH and Docker support
Stars: ✭ 61 (+22%)
Mutual labels:  rsync
Fpart
Sort files and pack them into partitions
Stars: ✭ 127 (+154%)
Mutual labels:  rsync
Routinator
An RPKI Validator written in Rust
Stars: ✭ 215 (+330%)
Mutual labels:  rsync
Docker Osx Dev
A productive development environment with Docker on OS X
Stars: ✭ 1,436 (+2772%)
Mutual labels:  rsync
Clsync
file live sync daemon based on inotify/kqueue/bsm (Linux, FreeBSD), written in GNU C
Stars: ✭ 115 (+130%)
Mutual labels:  rsync
Rsnapshot
a tool for backing up your data using rsync (if you want to get help, use https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss)
Stars: ✭ 2,335 (+4570%)
Mutual labels:  rsync
Hassio Addons
The repository for my Home Assistant Supervisor Add-ons.
Stars: ✭ 71 (+42%)
Mutual labels:  rsync
Kubectl Warp
Kubernetes CLI plugin for syncing and executing local files in Pod on Kubernetes
Stars: ✭ 245 (+390%)
Mutual labels:  rsync
Rsync Deployments
GitHub Action for deploying code via rsync over ssh
Stars: ✭ 59 (+18%)
Mutual labels:  rsync
Rsync Incremental Backup
Configurable bash script to send incremental backups of your data to a local or remote target
Stars: ✭ 150 (+200%)
Mutual labels:  rsync
scripts
Scripts for managing my Ubuntu / Rclone / Plex Server
Stars: ✭ 20 (-60%)
Mutual labels:  rsync
Elkarbackup
Open source backup solution for your network
Stars: ✭ 247 (+394%)
Mutual labels:  rsync
Rsync Time Backup
Time Machine style backup with rsync.
Stars: ✭ 2,572 (+5044%)
Mutual labels:  rsync

RSyncer GitHub Action

Action on GH marketplace   GitHub release   GitHub

This action uses rsync to sync files (probably) generated by a previous step in the workflow with a remote server.

Secrets

DEPLOY_KEY

Required SSH Key to be used during the rsync operation.

Inputs

flags

Required Flags to pass to rsync. Default -avzr --delete.

options

Required Rsync options. i.e. --exclude.

ssh_options

Required SSH command options. i.e. -p 2222.

src

Required Local path to be synced. i.e. public/.

dest

Required Remote server and path. i.e [email protected]:/var/www/server.com/.

Outputs

status

Friendly status of the rsync command.

Usage

Sync local folder to remote server

This example syncs the local folder public with the /var/www/server.com folder on the remote server server.com.

Add the a workflow file in your repository: .github/workflows/rsync.yml.

- name: Deploy to server
  id: deploy
  uses: Pendect/[email protected]
  env:
    DEPLOY_KEY: ${{secrets.DEPLOY_KEY}}
  with:
    flags: '-avzr --delete'
    options: ''
    ssh_options: ''
    src: 'public/'
    dest: '[email protected]:/var/www/server.com'

- name: Display status from deploy
  run: echo "${{ steps.deploy.outputs.status }}"

Use distinct port on remote server

This example deals with a server listening to ssh on a port other than 22.

Using a rsync workflow file: .github/workflows/rsync.yml, we modify the ssh_options input to have the -p 2222 option:

- name: Deploy to server
  id: deploy
  uses: Pendect/[email protected]
  env:
    DEPLOY_KEY: ${{secrets.DEPLOY_KEY}}
  with:
    flags: '-avzr --delete'
    options: ''
    ssh_options: '-p 2222'
    src: 'public/'
    dest: '[email protected]:/var/www/server.com'

- name: Display status from deploy
  run: echo "${{ steps.deploy.outputs.status }}"

Changes

v2.0.0 (2022-12-06)

  • Address the deprecation of save-state and set-output commands [taupecat]

v1.1.0 (2019-12-05)

  • Add support to distinct remote port [ericof]

v1.0 (2019-11-1)

  • Initial release of Pendect/action-rsyncer [ericof]

About

Pendect is reshaping the way you navigate your daily flood of news.

Stay up to date with news events across the globe and be a part in the fight against fake news.

Follow us

pendecthq on twitter

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].