Make SFTP syncing "easy-peasy lizard squeezy".
Project description
Installation
$ sudo apt-get update && sudo apt-get install -y python3 python3-pip $ sudo pip3 install thegekko
Enable tab-complete
Add the content of this to ~/.bashrc. Then,
$ source ~/.bashrc
Quick Start
Add files or directories you don’t want to sync.
$ gekko camo venv/ Checking for venv/... Exist. /home/me/gekkotest/.gekkoign saved.
Set up SFTP connection.
$ gekko grip root@myserver.com:/root/gekkotest-remote -s MyServer Host: myserver.com SSH Port: 22 User: root Upload Directory: /root/gekkotest-remote Remark: MyServer Connection Saved.
Set up SFTP connection using a rsa key and specify the ssh port.
$ gekko grip root@myserver.com:/root/gekkotest-remote -s MyServer -p 1080 -k ~/.ssh/id_rsa Host: myserver.com SSH Port: 1080 User: root Upload Directory: /root/gekkotest-remote Remark: MyServer Private key: /home/ice/.ssh/id_rsa
Check for changes.
$ gekko sense MyServer -p P@ssw0rd Connecting to myserver.com... Connected. Checking for /root/gekkotest-remote... Exist. Changes will be taken: * /root/gekkotest-remote/app.py + /root/gekkotest-remote/assets/logo.png Disconnecting... Done. 0.102 MB need to upload.
Sync using password. Add “-f” if you want to a full sync. Full sync will erase remote folder and re-upload local files.
$ gekko run MyServer -p P@ssw0rd -r Connecting to myserver.com... Connected. Make directory at /root/gekkotest-remote... Skipped. Change directory to /root/gekkotest-remote... Done. Ignored: .gekkoign Uploading: app/main/views.py... Done. Uploading: app/templates/index.html... Done. Skipped: app/templates/old.html Ignored: venv/lib/python3.5/site.py ...... Ignored: venv/pip-selfcheck.json Skipped: oldone.txt Uploading: requirements.txt... Done. Uploading: manager.py... Done. Reserved: db.py Disconnecting... Done.
Commands
camouflage (camo) : Define a file or a directory which will be ignored when uploading. This will generate ‘.gekkoign’ file.
grip (gp) : Create a host which files will be uploaded to. You can also save the host or remove it.
list (ls) : Show all the connections.
remove (rm) : Remove a connecion.
sense (ss) : Check for the changes which will taken in uploading.
run (rn) : Start the upload sequence.
version (ver) : Show Gekko version.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file theGekko-1.0.0.tar.gz.
File metadata
- Download URL: theGekko-1.0.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f5e7a90a5982d6b2fc626dad430dd84c0056860b8f868e685f33c75759bf672
|
|
| MD5 |
6ce3c6866cd9d39cb25363dbeee79c60
|
|
| BLAKE2b-256 |
b859df268f98ef172e0482088f0c3fec4867433601f331408f3ae610faeebb0e
|
File details
Details for the file theGekko-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: theGekko-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fcfd95f731868c5ea1a476cb5fdf72ff3b66472869b993fa84f4bf026b2924a
|
|
| MD5 |
175aed2a3613cdb5e543398cc2986bb4
|
|
| BLAKE2b-256 |
dc20c3ec86ac0e3a14711800deff98767f46d49c832be3f5897d06da0421adf9
|