• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

SFTP client for centos6

Noturns

Regular Pleskian
I need some help with setting up an automated SFTP on centos6
because i would like to create a cronjob that syncs files

1. If someone could post an example SFTP batch file with specific SFTP port?
solved. found an article -- http://stackoverflow.com/questions/...sftp-command-with-a-password-from-bash-script
found port solution here -- http://www.linuxquestions.org/questions/linux-security-4/how-to-use-different-port-for-sftp-345359/
found an alternative for open sftp (yafc) is an alternative solution which supports -r parameter for files and folders -- http://unix.stackexchange.com/questions/7004/uploading-directories-with-sftp

2. Explain passwordless authentication?
solved. found an article -- http://stackoverflow.com/questions/...sftp-command-with-a-password-from-bash-script
and found article -- http://www.linuxforums.org/forum/programming-scripting/108268-expect-spawn-command-not-found.html

3. Copy an local directory to SFTP directory?
solved. found an article -- http://stackoverflow.com/questions/...sftp-command-with-a-password-from-bash-script

4. How to parse date to a variable?
solved. found an article -- http://www.unix.com/shell-programming-and-scripting/26708-assign-date-value-variable.html

5. How to generate a logfile to that same SFTP directory?
not solved yet

Thanks
 
Last edited:
Back
Top