Copying folder modification date

I use this command:

Copy D:\Backup\* TO U:\_Backup\_Home UPDATEALL UNATTENDED=yes

Background:

In D:\Backup and U:_Backup_Home I have folders like Documents, Music etc.

I make backups in one of two ways:

  1. create backup directly to U: (USB drive) or
  2. create backup on local disk D: and then copy files using command above

The problem

When using command above DOpus always copies folders modification date, no matter whether it's more or less recent.

Eg. I create backup directly on disk U. A file is created under Folder U:_Backup_Home\Music so U:_Backup_Home\Music modification date is updated and thus is more recent than D:\Backup\Music
If I now run the command above, U:_Backup_Home\Music modification date will be set to an earlier date (modification date of D:\Backup\Music).

Is it possible to make DOpus not change modification date to less recent date? Especially when no changes inside folder are made.

Please try adding COPYDIRDATES=no to the command as a workaround. That should stop it applying the source directory dates to the destination directories, so any changed dirs will be bumped to the current time (which the filesystem does automatically).

(FWIW, Opus itself should not mind what the directory dates are when doing an UPDATEALL; it only cares about file dates. Directory dates aren't usually reliable/useful for any kind of synching. But I also agree it doesn't make sense to copy the directory dates over in the situation you described.)