-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
owncloud's webdav: preserve timestamps #237
Comments
I'll add the header X-OC-mtime, no problem, but they could just accept the сб, 14 мая 2016, 5:33 Raphaël Droz notifications@github.com:
|
I'll add the header X-OC-mtime, no problem, but they could just accept the
standard Last-modified header.
|
How would I restore remote timestamps without re-uploading every file? |
Got it working using According to https://github.com/cernbox/smashbox/blob/master/protocol/protocol.md, the |
mirror -c may help to update timestamps, but I'm not sure it would work for ср, 18 мая 2016, 17:27 Raphaël Droz notifications@github.com:
|
it seems that not:
rsync has such an option (setting --size-only and --times and omitting --update)
But currently with lftp if the remote timestamp is newer (which is the
probable case if file has just been uploaded and got timestamp set to
now), then a local file having an older time will just be ignored from
further `mirror` (--ignore-time won't helps either).
|
I have created webdav-proppatch branch which sends PROPPATCH after PUT (if X-OC-MTime was not successful). I don't have access to any OC server to test it. Please test if you can. |
wow, that's a huge patch. thank you! |
For testing purposes you can always comment out the "accepted" branch of ср, 1 июня 2016, 17:01 Raphaël Droz notifications@github.com:
|
According to this owncloud/core#20873
ownCloud webdav implementation allow timestamp preservation.
Do you think that would be hard to implements in the lftp mirror command?
(bonus, would it be possible to make
mirror
"fix" timestamps of remote files already uploaded?)The text was updated successfully, but these errors were encountered: