Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 1.15 KB

README.md

File metadata and controls

59 lines (37 loc) · 1.15 KB

python-sync

A little package to mimic git-like-syncing-behaviour for large binary files with python and rsync. Best is to compile your own binary with PyInstaller and append it to $PATH.

You may add any of rsync's double-dash options to modify the sync command. You may also use a file named .exclude in your repository-root directory to exclude files and directories. See http://linux.die.net/man/1/rsync for more information.

Deleted files will be moved to:

.repository/backups/<date>/

init repository

Initialize empty repository in current working directory.

python pysync.py init

clone repository

Clone from a remote repository.

python pysync.py clone <remote-ssh-url>

pull repository

After cloning a repository or setting a remote origin you can pull changes from the remote repository.

python pysync.py pull

push repository

Push changes to a remote origin.

python pysync.py push <origin>

set remote origin

Set or change a remote origin url.

python pysync.py set-remote <origin> <remote-ssh-url>

remove remote origin

Remove origin.

python pysync.py remove-remote <origin>