Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mainro/psyncopath
python helper for rsync mirroring
https://github.com/mainro/psyncopath
Last synced: about 1 month ago
JSON representation
python helper for rsync mirroring
- Host: GitHub
- URL: https://github.com/mainro/psyncopath
- Owner: MainRo
- Created: 2013-07-25T13:30:34.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-01T19:59:15.000Z (over 10 years ago)
- Last Synced: 2023-03-17T14:35:15.695Z (over 1 year ago)
- Language: Python
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
psyncopath is a helper for rsync:
- push or pull a mirrored directory.
- add mirrored directory configuration in a user config file.1- Config file
Create a ~/.psyncopath config file containing the configuration. The
configuration is a python script containing a "config" dictionary. The
following example declares a "mymirror" workspace:config['mymirror'] = { 'local_path':'your local path', 'remote_path':'the server/remote path', 'server':'user@host'}
config settings:
- local_path : Local directory to mirror.
- remote_path : Location where mirroring is done (On the server if a server
address is provided).
- server : user and hostname of a remote server where mirroring is done.
- mode : "smb" if mirroring is done on a samba mount point.
- temp_dir : local path where temporary files are created. Use this if not
supported on remote location.2- server setup
Ensure that the server has the ssh key of the client available. Password based
authentication is not supported.Mirroring can be done localy if no server is provided.
3- synchronize
To push a local repository to the server:
psyncopath mymirror pushpull a server mirrored content to a local repository:
psyncopath mymirror pullwhere "mymirror" is the name of the workspace