Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

rsync-poll

A simple bash script that continuously synchronizes directories using rsync.

Features

  • Continuous directory synchronization
  • Supports both local and remote directories
  • Automatic SSH connection management
  • Configurable polling interval

Installation

  1. Clone or download this repository
  2. Make the script executable:
    chmod +x rsync-poll.sh
  3. Add to your PATH by adding this line to your ~/.bashrc or ~/.zshrc:
    export PATH="$PATH:/path/to/rsync-poll"
  4. Reload your shell configuration:
    source ~/.bashrc  # or source ~/.zshrc

Usage

rsync-poll.sh <source_dir> <destination_dir>

Examples

Local synchronization:

rsync-poll.sh ~/Documents/project ~/Backup/project

Remote synchronization:

rsync-poll.sh ~/local/folder user@remote:/path/to/folder
rsync-poll.sh user@remote:/path/to/folder ~/local/folder

Configuration

The default polling interval is 2 seconds. To modify this, edit the INTERVAL variable in the script.

About

A simple bash script for continuous directory synchronization using rsync, supporting both local and remote directories with automatic SSH connection management.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages