r/linuxadmin • • Aug 23 '19
Hard links vs Soft links
I know the difference between hard and soft links, but what I can't think of is why you would want to use a soft link over a hard link? What are some scenarios in which you would use either?
48
Upvotes
View all comments
Show parent comment
20
u/[deleted] Aug 23 '19
(Ok, this is pedantic, but every file has at least 1 hardlink.)
Anyway, one of the most eye catching use of hardlinks is rsync snapshot backups. (For example rsnapshot.) cp -al is fornicating useful for snapshotting on filesystems that don't have it builtin.