Tagged Questions
2
votes
2answers
100 views
`cp -al` snapshot whose hard links get directed to a new file when edited
I am trying to take snapshots of a massive folder regularly.
I have read here: http://www.mikerubel.org/computers/rsync_snapshots/#Incremental
that cp -al takes a snapshot of a folder by simply ...
6
votes
1answer
43 views
Is there a way to express: `--link` or fall back to ordinary copy in cp (from GNU coreutils)?
Is there a way to tell cp to --link (i.e. create hard links), but fall back in the case where I am attempting inter-device hardlinks? Inter-device links aren't possible and would cause cp to fail.
...
4
votes
4answers
1k views
How to copy directories with preserving hardlinks?
How to move directories that have files in common from one to another partition ?
Let's assume we have partition mounted on /mnt/X with directories sharing files with hardlinks.
How to move such ...