Topic "synchronize remote on the sub Folders"

Author Message
Olnyov

Guest


Good day! I have a problem. Help me!

I want to synchronize photos with my site every day.


This script don`t work:

Code:
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.
Advertisements
olnyov

Guest


It`s my structure on site.
screen.png (4.27 KB)

Description: It`s my structure on site.

screen.png

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
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.
olnyov

Guest


Thank you!

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

Now it`s ok.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
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.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License