1

Filename collision during backup

view story
linux-howto

http://www.unix.com – Hi, I am trying to backup all *.tar files from a legacy Linux to a portable harddrive. find . -name "*.tar" -exec cp {} /media/mypassport/backup \; I found that there are files with the same filenames and they were overwritten in the destination folder. They are coming from different directories. To avoid filename collision, could you advise me how to backup and preserve the directory structure? Thanks, C. H. (HowTos)