synchronize remote on the sub Folders

Advertisement

Olnyov
Guest

synchronize remote on the sub Folders

Good day! I have a problem. Help me!

I want to synchronize photos with my site every day.


This script don`t work:

option echo on
option confirm off
open mylog@testpavel.ru -passive

synchronize remote -delete "c:\yf_sites\testpavel_ru\images\" "/testpavel.ru/public_html/images"

close
exit

Folder images/ has a lot of subdirectories (eg, /00001/, /00002/, /00003/, and so on). The subfolders have photos.
I need to synchronize any changes in the local subfolder to the site.

For example, if I delete a photo in a local subfolder /0001/, after the script is run, the same picture should be destroyed on site. If I add a photo or change its size, these changes must also be synchronized to the web site.

Now the script does not find changes in the sub-folders.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,453
Location:
Prague, Czechia

Re: synchronize remote on the sub Folders

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

olnyov
Guest

synchronize remote on the sub Folders

Thank you!

You help me with your words: "using the latest version of WinSCP"

Now it`s ok.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,453
Location:
Prague, Czechia

Re: synchronize remote on the sub Folders

Your script looks ok.

If it does not work, please attach a full log file showing the problem (using the latest version of WinSCP).

Do not forget to mention a full path to a file (both local and remote) that was not deleted and should have been.

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum