Synchronize Local

Advertisement

Smack
Guest

Synchronize Local

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Synchronize Local

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?

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.

Reply with quote

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.

Reply with quote

martin
Site Admin
martin avatar

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?

Reply with quote

Advertisement

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
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?

Reply with quote

Advertisement

You can post new topics in this forum