Using 'cp -pR' rather than 'cp -a' when making a backup

 I changed from using 'cp -a' to 'cp -pR' when making a backup of the directories I use most.

The 'cp -a' command gave an error because a symbolic link could not be created on the FAT file system of the memory-stick that was the destination of the copy.

So I removed the '-d' (no dereference) part of the '-a' option and now 'cp' copies all the files that the symbolic link references.

On second thoughts, maybe 'cp -a' is better because it means I do not get duplicate files.

There are more tips at: bbingo.xyz/techtips/

 


 

Comments

Popular posts from this blog

Steve Jobs quotes

Dark mode using 'invert' does not work on Firefox

Free quotes