Score:0

rsync creating duplicate files

ve flag

rsync is creating duplicate files on destination and renaming them. Filename.txt gets added again as Filename(1).txt

rsync -avP --ignore-existing /source/ /destination/

Anyone have an idea what is going on?

ar flag
Which distro and version of Linux are you using? Where is the destination? Is is it a remote folder? If remote, how is it connected, sftp, NFS, Samba, or some other means? What is the format type of the remote file system, ext4, NTFS, or something else? If it is an external USB drive, what is the partition format?
uz flag
Jos
`--ignore-existing` does what it says in `man rsync`: it will not update existing files. If a file with the same name already exists in the destination, it needs to rename the newly arriving file.
user14282086 avatar
ve flag
Distro is Ubuntu 22.04 / copy is from remote cifs vers=3.3 share to remote NFS vers=4 share
user14282086 avatar
ve flag
My quick tip for --ignore-existing says it will skip existing files. Did not elaborate on full def in man rsync. Could be my issue. Thanks for the comments
user14282086 avatar
ve flag
Nope, that was not the issue. Still seeing duplicated files with the --ignore-existing removed.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.