Forum Discussion
"Copy To" reseted the modified & created dates for the files while will preseve them for the folders
I want to move 10 folders from one-drive personal site to a sharepoint document library inside a modern team site.
so i went to the onedrive personal site >> select the 10 folders >> click on "Copy To" >> i select the "Documents" library inside the team site.
now the folders and files where copied to the destination site, but i have noted that the modified date and created date for the files (pdf and MS word) will be reset to match the copy time, while the modified date and created date will be preserved for the folders. so my question if i can force the modified date and created date to be preserved for the files as well?
- A copy is a new file. So not using that. You can use move to or sync the library and try moving files to sync location and it might keep the file dates but usually that happens when you copy.
10 Replies
- MagnusGoksoyrOLDProfileBronze Contributor
john john Have You tried with the SharePoint Migration Tool? If You sync the files from Your OneDrive to your computer you can use SharePoint Migration Tool and choose to migrate from "File Share", then you have the option to point at Your syncronized folders and copy them to the SharePoint site. I am not sure of if it will preserve the dates but it is definetly worth a try.
https://docs.microsoft.com/en-us/sharepointmigration/introducing-the-sharepoint-migration-tool
Regards, Magnus
- john johnIron Contributor
MagnusGoksoyrOLDProfile wrote:john john Have You tried with the SharePoint Migration Tool? If You sync the files from Your OneDrive to your computer you can use SharePoint Migration Tool and choose to migrate from "File Share", then you have the option to point at Your syncronized folders and copy them to the SharePoint site. I am not sure of if it will preserve the dates but it is definetly worth a try.
https://docs.microsoft.com/en-us/sharepointmigration/introducing-the-sharepoint-migration-tool
Regards, Magnus
MagnusGoksoyrOLDProfile I already tried this approach, where i sync the onedrvie files using my onedrive desktop app >> then i used sharepoint migration tool to migrate from file share to sharepoint ... where the migrated files did not preserve their permission , so i did not investigate on this appraoch any more.. i think i will go with using the "Move-To" >> so i can preserve the modified/created dates >> then will reapply the permission manually on the moved files...
- A copy is a new file. So not using that. You can use move to or sync the library and try moving files to sync location and it might keep the file dates but usually that happens when you copy.
- john johnIron Contributor
ChrisWebbTech wrote:
A copy is a new file. So not using that. You can use move to or sync the library and try moving files to sync location and it might keep the file dates but usually that happens when you copy.ChrisWebbTechi do not want to use "Move to" as i need to keep the source files inside onedrive, so we can reapply the permission on the folders, since neither "copy to" nor "move to" will preserve the permissions, alos i need to keep the source files on onedrive for verification purposes (to make sure that everything has been moved correctly) . You mentioned using the sync, but can you advice how i can use sync to transfer files from one library to another?
- Setup both locations sync and copy across. You might also try move to and then restore from recycle bin.