- Aug
- 258
- 4
I want to mirror a directory tree to different drive/location.
I tried COPYand SYNC but both create the new directories with the actual date&time.
Is there a way to preserve the date&time of the original directory ?
Especially with SYNC I hoped that it would be possible.
For me the timestamp of a directory is a useful information and I don't want to lose it.
btw:
I accidentally used a wrong syntax for @FILES:
This one stalls and doesn't come back to the prompt.
Of course it should be
and even more to complain :p:
It would be nice if SYNC would report the copied directories, too
I tried COPYand SYNC but both create the new directories with the actual date&time.
Is there a way to preserve the date&time of the original directory ?
Especially with SYNC I hoped that it would be possible.
For me the timestamp of a directory is a useful information and I don't want to lose it.
btw:
I accidentally used a wrong syntax for @FILES:
Code:
echo %@files[ /s /a:d *.*]
Of course it should be
Code:
echo %@files[ /s *.*,d]
and even more to complain :p:
It would be nice if SYNC would report the copied directories, too
Code:
>sync /s /a:d .\share-backups c:\temp\xxx\share-backups
SYNC: \\company.net\Net-BER\DV\Share\!w2kadm\share-backups => C:\temp\xxx\share-backups
0 files copied
SYNC: C:\temp\xxx\share-backups => \\company.net\Net-BER\DV\Share\!w2kadm\share-backups
0 files copied