Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

psync

build codecov

A CLI utility to automatic synchronization local source tree for Plesk or Plesk extension with remote machine.

Installation

Installation using Homebrew:

brew install plesk/psync/psync

If you have Go toolchain installed, you can use the following command to install psync:

go install github.com/plesk/psync@latest

Usage

Basic usage:

cd ~/projects/plesk/extensions/ext-broadcast-message
REMOTE_HOST=10.66.1.1 psync

The output can be like the following:

2026/08/12 11:02:26 Plesk extension broadcast-message detected
2026/08/12 11:02:26 watcher is ready...
...
2026/08/12 11:07:52 updated 10.66.95.33:/usr/local/psa/admin/plib/modules/broadcast-message/hooks/ContentInclude.php
...

The utility will watch the specified directory and will send the changed files to the specified remote host. Files deleted or renamed locally are removed from the remote host as well.

To upload the files that are currently changed according to git status (without starting the watcher):

REMOTE_HOST=10.66.1.1 psync diff

Deleted files are removed from the remote host as well. For renamed files, the new path is uploaded and the old one is removed.

REMOTE_HOST variable can be stored in .env file.

Limitations

  • Utility runs only on macOS.
  • Allowed remote destination platform is Linux only.

About

A utility to sync source code with a remote machine

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages