Skip to main content

File/Directory syncing over scp

Project description

scpy is a command line tool to autosync files and directories to remote servers over ssh. For windows users, there is a program called winscp that can automatically keep a remote directory up to date with a local one. I didn’t find a tool I liked to do this on linux, so I made this one.

It follows the usage of the regular scp command with a couple of slight differences.

  • There is no need to supply the -r option for directories. It determines itself whether it’s a directory or not

  • You can only push files to remote servers, you can’t pull them back

  • There is no globbing support (yet)

Usage Examples

scpy workspace/src username@192.168.1.2:/

This will sync the local folder ./workspace/src to /src on 192.168.1.2. It overwrites the src folder on the remote machine.:

scpy workspace/src/file1.py workspace/src/file2.py username@192.168.1.2:workspace/src/

This will synchronize the 2 local files file1.py and file2.py to /home/username/workspace/src/ on 192.168.1.2:

scpy workspace/src/file1.py workspace/src/file2.py username@192.168.1.2:workspace/src/ otherusername@host.com:/opt/

This is the same as above but it will sync the same files to both 192.168.1.2 and host.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scpy-1.1.4.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file scpy-1.1.4.tar.gz.

File metadata

  • Download URL: scpy-1.1.4.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scpy-1.1.4.tar.gz
Algorithm Hash digest
SHA256 6d6e9874285c4ae035397d8360c672b23f51e1b52f3ee783249c887ff38a38d4
MD5 1a1e17937b7fde832694837ffafe23ae
BLAKE2b-256 1ab50acf0bfd98b09bae4ed411630fd39e83e907e3404141cffde7d94843c236

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page