file copy: but only files that has changed / are new (and more demands)
Moderators: Hacker, petermad, Stefan2, white
file copy: but only files that has changed / are new (and more demands)
I want to copy everything from c:\mydata til d:\mydata, but only files that has changed / are new (including lots of subdirs and their content). Files in the destination which are no longer in the source should be deleted from the destination.
I have been using "synchronize dirs" for this, but haven't found a setting which deletes files in the destination.
Maybe there is a windows built-in cmd-prompt application for this?
Btw: I'm still on 9.51, but is of course going to upgrade if it helps.
Subject adjusted by moderator to fitting better to the thread content
I have been using "synchronize dirs" for this, but haven't found a setting which deletes files in the destination.
Maybe there is a windows built-in cmd-prompt application for this?
Btw: I'm still on 9.51, but is of course going to upgrade if it helps.
Subject adjusted by moderator to fitting better to the thread content
Re: file copy
Tryuffe_K wrote: 2023-04-05, 11:50 UTC Maybe there is a windows built-in cmd-prompt application for this?
Code: Select all
Robocopy.exe c:\mydata d:\mydata /S /XO /MIR
Code: Select all
Robocopy.exe "c:\my data" d:\mydata /S /XO /MIR
Last edited by Ovg on 2023-04-05, 12:24 UTC, edited 1 time in total.
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
#259941, TC 11.01 x64, Windows 7 SP1 x64
Re: file copy
uffe_K
Use asymmetric mode:
Use asymmetric mode:
Asymmetric If this option is checked, it is assumed that a copy of the left side should be created on the right side. Files which do not exist on the left side will be marked for deletion on the right side. This option is meant for backups.
Re: file copy
Asymmetric is already checked, but it doesn't help.
Re: file copy
Robocopy worked well. And I like the filename 

Re: file copy
The folder c:\mydata must be on the left and d:\mydata on the right. Is this factored in?Asymmetric is already checked, but it doesn't help.
Re: file copy
This mode does exactly what you requested.
The source must be the right side, the target on the left.
Whats your problem with it ?
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
Re: file copy
As far as I understand it, it's the other way around, the source is on the left-hand side. Asymmetric mode makes the right-hand side equal to the left-hand side by copying from left to right and deleting single files on the right.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: file copy
My mistake, you are right of courseDalai wrote: 2023-04-05, 18:15 UTCAs far as I understand it, it's the other way around, the source is on the left-hand side. Asymmetric mode makes the right-hand side equal to the left-hand side by copying from left to right and deleting single files on the right.
Regards
Dalai

Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
Re: file copy: but only files that has changed / are new (and more demands)
The issue is that files that should be deleted on the right side, do not get deleted.
And I have source = left, destination = right. Just as it should be.
A total of 2600 files, app. 100 should have been deleted on the right side, but it wasn't until I used robocopy, that it worked.
I'm also sure it used to work several versions of TC ago and I'm not sure when it stopped.
Right now source=destination, but I may be running some more experiments tomorrow.
And I have source = left, destination = right. Just as it should be.
A total of 2600 files, app. 100 should have been deleted on the right side, but it wasn't until I used robocopy, that it worked.
I'm also sure it used to work several versions of TC ago and I'm not sure when it stopped.
Right now source=destination, but I may be running some more experiments tomorrow.
Re: file copy: but only files that has changed / are new (and more demands)
Horst.Epp,

uffe_K,
Roman
Or perhaps... left?you are right of course

uffe_K,
Mind providing a screenshot of your Synchronize dirs window?A total of 2600 files, app. 100 should have been deleted on the right side, but it wasn't
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: file copy: but only files that has changed / are new (and more demands)
2uffe_K
Do you have the Show button with the blue left-pointing arrow activated? Otherwise it won't work.
Do you have the Show button with the blue left-pointing arrow activated? Otherwise it won't work.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: file copy: but only files that has changed / are new (and more demands)
Save the correct synchronization settings using F2 in wincmd.ini and use the button/command with SYNCOPEN saved_sync_name (opens synchronize dirs with saved options). If the parameter begins with an equal sign "=", the comparison will start immediately.uffe_K wrote: I'm also sure it used to work several versions of TC ago and I'm not sure when it stopped.
Re: file copy: but only files that has changed / are new (and more demands)
After having checked the blue arrow pointing to the left, it works.