[NTLUG:Discuss] "Undo" hard links?

Lance Simmons simmons.lance at gmail.com
Tue Nov 10 10:33:22 PST 2020


I recently created a lot of hard links, thereby reducing the disk space
used by my Documents directory by a chunk. I was feeling pretty good about
this, but then discovered that Google Drive does not acknowledge hard
links. Every time the folder is synchronized (via a cron job), a few
hundred bogus "conflicts" are declared and  then resolved. Then, the next
time the folder is synchronized, the same "conflicts" are found and
resolved again.

I love the idea of hard links, but now I want to return to having separate
files. Is there an easy way to (1) delete hard links, then (2) copy the
files (inodes), giving them the filesystem names of the original hard
links?

I should switch away from Google Drive; maybe this annoyance will motivate
me.

Lance

-- 
Lance Simmons


More information about the Discuss mailing list