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

martin

Re: File deletion on 2-way sync

BradP wrote:

Perfect timing. I've been needing this feature for a while and was about to code something of my own. I tried the script your referenced but it requires ComparisonDifference.Reverse in 18.1 which was only committed to the repo 12 days ago. Do we have an idea of when 18.1 will be compiled and downloadable? Thanks so much for your development.

If you go to old revisions of the page, you will find versions compatible with the 5.17. If you actually use WinSCP 5.17 to install the extension, it will install that version automatically.
BradP

Re: File deletion on 2-way sync

martin wrote:


Hi Martin,

Perfect timing. I've been needing this feature for a while and was about to code something of my own. I tried the script your referenced but it requires ComparisonDifference.Reverse in 18.1 which was only committed to the repo 12 days ago. Do we have an idea of when 18.1 will be compiled and downloadable? Thanks so much for your development.

Brad
martin

Wary wrote:

I totally support this request!
Now it is not possible to use a directory that gets regularly synced to work in, because e.g. Word creates a lot of temp files, and all this files will be synced and then the folder is full of such waste!

You can put them on exclusion list:
https://winscp.net/eng/docs/ui_transfer_custom#other
Wary

I totally support this request!
Now it is not possible to use a directory that gets regularly synced to work in, because e.g. Word creates a lot of temp files, and all this files will be synced and then the folder is full of such waste!
martin

Re: File deletion on 2-way sync

Thanks for your post. Let's see if more people find this useful :)
Josef

File deletion on 2-way sync

I would love if someone could implement the following feature:

When doing a two-way sync of directorys add a option to specify a info-file where file size/time of files is stored.

If there is information stored in the file, handle the following cases:

- File exists on A and has same size/time as in the info-file, doesn't exist in B:
DELETE on A
- File exists on A and has different size/time as in the info-file, doesn't exist in B:
COPY from A to B
- File exists on A and B and has different size/time than in the info-file:
COPY newer file, overwrite older

Of course the same with A and B switched.

After every sync write the names/paths of all existing files and their size and time into the info-file.

This would allow to sync files both ways, while allowing users to delete files.

I would need this, because I have a Server at home and some space at a web hosting company.
While at home, I and my family members want to use the server at home to access the files, because it is fast on the internal network.
While away, this is slow (because the home connection has only 1,5Mbit/s upload), so it is better to access the webspace which has a 100Mbit/s shared connection.
I sync the files every 10min, so there are probably always only changes on one side.