Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

TheNick

Sync 1:1

synchronize remote -delete C:\Users\userx\Desktop\S /home/shared/userx/S
synchronize local -delete C:\Users\userx\Desktop\R /home/shared/userx/R
synchronize remote -delete C:\Users\userx\Desktop\R1 /home/shared/userx/R1
synchronize local -delete C:\Users\userx\Desktop\R2 /home/shared/userx/R2

Seems like this does the job.
TheNick

Sync 1:1

Hi,
I have this script to send files either from SFTP to Local PC or vice versa. I want to achieve if I add new files to local folder and delete some old ones in that folder to sync with remote folder in 1:1 manner.
open sftp://username:password@122.27.38.5:5022 -hostkey="xxxxx"
option confirm off
option batch continue
synchronize remote C:\Users\userx\Desktop\S /home/shared/userx/S
synchronize local C:\Users\userx\Desktop\R /home/shared/userx/R
synchronize remote C:\Users\userx\Desktop\R1 /home/shared/userx/R1
synchronize local C:\Users\userx\Desktop\R2 /home/shared/userx/R2

Thanks for the help!