Topic "Synchronize Local"

Author Message
Smack

Guest


Backstory: I started using a Scripted WinSCP to do some backups of a webserver. I decided to synchronize both, so if someone deleted everything on the webserver it would come back. Worked like a champ. I get a new server to do this with, and it synchronizes the remote directory with the local one, deleting everything. I changed nothing, but I chalk it up to a fluke.

Now, fearing a deletion of everything again, I set the synchronize command to be local, so I just have a backup of it and not an auto-replacing one. However, there are certain directories that now always backup/download the files. Nothing has changed with them ever, and yet they always back up. Set -critera=both, =time, and =size, and it behaves the same.

I set it back to Synchronize Both, and it behaves like you'd expect, only copying locally the new or changed files.
Advertisements
Smack

Guest


Version: v4.1.8
Protocol: SFTP
Interface: Commander
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Smack wrote:
Backstory: I started using a Scripted WinSCP to do some backups of a webserver. I decided to synchronize both, so if someone deleted everything on the webserver it would come back. Worked like a champ. I get a new server to do this with, and it synchronizes the remote directory with the local one, deleting everything. I changed nothing, but I chalk it up to a fluke.

First, WinSCP has preview enabled by default, so you should have been "warned" about the deletion, haven't you?

Quote:
Now, fearing a deletion of everything again, I set the synchronize command to be local, so I just have a backup of it and not an auto-replacing one. However, there are certain directories that now always backup/download the files. Nothing has changed with them ever, and yet they always back up. Set -critera=both, =time, and =size, and it behaves the same.

I set it back to Synchronize Both, and it behaves like you'd expect, only copying locally the new or changed files.

Please read FAQ first. If that does not help, come back.
_________________
Martin Prikryl
Smack

Guest


I definitely read the FAQ first, guess I should have mentioned it. Also, the initial deletion was probably my own fault, and it's not really the part that bothers me.

The part that I'm confused about is why [synchronize local] would continually download the same files every time it runs, regardless of the criteria it's supposed to match.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Smack wrote:
The part that I'm confused about is why [synchronize local] would continually download the same files every time it runs, regardless of the criteria it's supposed to match.

I believe that possible reason is explained in the FAQ, isn't it?
_________________
Martin Prikryl
Smack

Guest


Although that is possibly a problem, the question is why does it work if it's set to Local, and not Remote? It still has to check for updates and it does so correctly if it's set to Local.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Smack wrote:
Although that is possibly a problem, the question is why does it work if it's set to Local, and not Remote? It still has to check for updates and it does so correctly if it's set to Local.

OK I see. Can you enable preview and post a screenshot for "local" synchronization showing the files there are always synchronized?
_________________
Martin Prikryl
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