File deletion on 2-way sync

Advertisement

Josef
Joined:
Posts:
3
Location:
Austria

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.

Reply with quote

Advertisement

Wary
Guest

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!

Reply with quote

Advertisement

BradP
Joined:
Posts:
1

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

Reply with quote

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

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.

Reply with quote

Advertisement

You can post new topics in this forum