Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viveksjain/pypush
Continuously push local changes to a remote server
https://github.com/viveksjain/pypush
Last synced: 13 days ago
JSON representation
Continuously push local changes to a remote server
- Host: GitHub
- URL: https://github.com/viveksjain/pypush
- Owner: viveksjain
- License: mit
- Created: 2012-12-19T14:22:59.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T02:23:20.000Z (6 months ago)
- Last Synced: 2024-08-01T22:57:29.954Z (3 months ago)
- Language: Python
- Size: 34.2 KB
- Stars: 114
- Watchers: 7
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE.txt
Awesome Lists containing this project
README
Pypush
======Problem
-------
I often work on files that are stored remotely. I can either work on them
locally and not have to deal with network latency, or I can work remotely and
not need to reupload files every time I change them. Both options are
frustrating and leave a lot to be desired.Solution
--------
Pypush continuously monitors your local directory and immediately uploads any
changes you make to your specified remote directory. You can also just make some
changes locally, then periodically run pypush to synchronize all those changes
to the remote directory.What sets pypush apart is its real-time sync, and its integration with
Git/Mercurial. Any local files ignored (and untracked) by Git/Mercurial will not
be pushed to the remote machine.Requirements
------------
Requires a Unix system - Mac or Linux. May work on Windows with the right tools
installed. If you are interested in getting it to work on Windows, [open a new
issue](https://github.com/viveksjain/pypush/issues/new). The remote machine must
have `rsync` installed.Installation
------------
Download and install the repository code. Download https://github.com/viveksjain/pypush/archive/refs/heads/master.zip and open it.cd pypush-master
sudo pip install .Usage
-----
```
usage: pypush [-h] [-q] [-v] [-s] [-i] [-e] [-a] [-p PORT] [-k]
[-o SSH_OPTIONS] [--version]
user@hostname destContinuously push changes in the current directory to a remote server. If this
is a Git/Mercurial directory, files that are ignored by Git/Mercurial will not
be pushed.positional arguments:
user@hostname the remote machine (and optional user name) to login
to
dest the path to the remote directory to push changes tooptional arguments:
-h, --help show this help message and exit
-q, --quiet quiet mode - do not show output whenever a file
changes
-v, --verbose verbose mode - run rsync in verbose mode
-s, --skip-init skip the initial one-way sync performed on startup
-i, --show-ignored print output even when ignored files are created or
modified (this flag is overridden by quiet mode)
-e, --exit-after exit after the initial sync, i.e. do not monitor the
directory for changes
-a, --include-all do not ignore any files
-p PORT, --port PORT the SSH port to use
-k, --keep-extra keep files on the remote that do not exist locally
-o SSH_OPTIONS, --ssh-options SSH_OPTIONS
options to pass on to SSH with the -o flag. This
argument may be specified multiple times.
--version show program's version number and exitWARNING: pypush only performs a one-way sync. If you make changes directly on
the remote machine, they may be overwritten at any time by changes made
locally.
```Example:
pypush [email protected] '~/www'
Stop pypush by pressing `Ctrl+C`.
Support/Contact
---------------
[Open a new issue](https://github.com/viveksjain/pypush/issues/new) or email me
at [[email protected]](mailto:[email protected]).