You are not logged in.

#1 2022-04-28 08:50:48

LithoUser
Member
Registered: 2016-11-17
Posts: 173

[SOLVED] Rsync wants to sync identical files copied with cp

Hello,

I have copied one folder from one HDD to another HDD using cp. Now I'd like to be able to keep them synced using rsync. But everytime I run rsync, it wants to copy all the files. For example, if I execute:

rsync -rnv source_folder destination_folder

then it displays the name of all the files, as if they were all different files...

I've confirmed that the files have the exact same names and same sizes though; however, the dates (creation date / access date / modification date) are not the same. Maybe that's the problem? Is there a way to sync those dates only without copying the files themselves? It's a 200Go folder containing hundreds of videos, so I'd really like to avoid copying the files once again.

Thanx for any help!

Last edited by LithoUser (2022-04-28 09:18:26)

Offline

#2 2022-04-28 09:18:12

LithoUser
Member
Registered: 2016-11-17
Posts: 173

Re: [SOLVED] Rsync wants to sync identical files copied with cp

Nevermind, I've finally found it by myself; I can sync the timestamps and compare files on size only, using the following command:

rsync -vrtpi --size-only source_folder destination_folder

Last edited by LithoUser (2022-04-28 09:18:45)

Offline

Board footer

Powered by FluxBB