ftpsync | Small Tool written in Python to synchronize | FTP library
kandi X-RAY | ftpsync Summary
kandi X-RAY | ftpsync Summary
This is the FtpSync, an open-source tool that let you to synchronize local directories that are on your computer with remote directories that are on a FTP server.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Synchronize two directories
- Main function .
- returns True if file can be ignored
- Initialize the logger .
- get value from yml
- Format a record .
- Check if path exists
- Load yaml file
- Log a message
- Load yaml file
ftpsync Key Features
ftpsync Examples and Code Snippets
{
'primary': {
host: 'ftp.mywebsite.com',
username: 'johnsmith',
password: 'secretpassword',
path: '/www/',
upload_on_save: true,
tls: true
}
}
Community Discussions
Trending Discussions on ftpsync
QUESTION
I am trying to sync two folders via FTP, yes I know there are better or different ways but for now I need to implement it this way, I was trying the example code from pyftpsync since well, a sample code should work easily right? I am just trying to connect between some test folders I made, one is empty(local) and the remote has a single text file that I want to fetch. It tries to connect but after about 2 minutes I get this error.
well, my FTP does work outside of python. I can connect over winSCP just fine.
some places mentioned that a proxy could possibly cause this, but it seems I am not behind a proxy currently, but maybe I did not set that properly and it believes there should be a proxy somehow?
anyways any possible troubleshooting ideas would help. Thank you
here is my code, just using commands on the prompt for pyftpsync produces the same errors for me. So it is possible some input parameter is off causing all of this.
...ANSWER
Answered 2019-May-29 at 06:18Pyftpsync uses FTP protocol.
You are connecting to port 22, which is used for SSH/SFTP.
So if your server is actually SFTP server, not FTP server, you cannot use Pyftpsync with it.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
Install ftpsync
You can use ftpsync like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page