Many file systems support "hard links" where a file appear under several different names. The names are all equally good and the underlying storage is only freed when all names are deleted.
Questions tagged [hardlink]
68 questions
0
votes
0 answers
Issue Hardlink/Junction not working when chroot all users to c:/share dir in Windows OpenSSH Server 2019
Issue Hardlink/Junction not working when chroot all users to c:/share dir in Windows OpenSSH Server 2019.
Link Created
mklink /d E "E:"
mklink /d F "F:"
Entry in sshd_config file
ChrootDirectory c:/share
Now When I connect to my Server via SCP using…
0
votes
1 answer
Best way to find all hard links to a directory
I am tracking down what may be a stray or erroneous hard link to a directory,
so I want to find all the hard links to a directory to manually verify them. (fsck finds no errors, but the link count appears wrong on casual inspection.)
The normal way…

Old Pro
- 1,425
- 12
- 21
0
votes
3 answers
Remote Link on OSX
I have two machines on the same LAN, I usually ssh from one to the other and I was wondering if I could create a symbolic or hard link from a box that points to the other one.
I'm using OSX on both PC's
Thanks a lot!

Pablo Fernandez
- 665
- 1
- 5
- 8
0
votes
3 answers
have 2 folders on different disks behave as if they were 1 folder
I have a server with two 1TB hard drives. I have an uploads folder on /disk2/uploads, That folder has filled up the entire hard drive. The other disk is basically empty. I want to have a spill over folder on the empty drive that hosts any…

ajon
- 309
- 4
- 11
0
votes
0 answers
Should I use symbolic links or hard links (and junctions) for web server?
I understand the differences between hard links (or junctions/soft links for directories) and symbolic links.
Are there performance/security benefits for one or the other for web server usage?

Brian Leishman
- 111
- 1
- 8
0
votes
1 answer
How to get the total amount of hard links in a Linux folder structure?
I am currently having a bit trouble with calculating backup sizes with Jungledisk due to the fact that each hard links seems to be counted as a seperate file. I want to be able to retrieve a list of all hard links in a certain folder structure, in…

Aron Rotteveel
- 8,449
- 17
- 53
- 64
0
votes
1 answer
Does rsync -H convert file to hard link on destination after deduplication on source?
I've got two servers, the second one being synced via rsync every now and then.
I've got some (few thousands ?) of big duplicate files on which I would like to use freedup to spare some space.
If I launch freedup on source, would an rsync -H replace…

vincent.m
- 85
- 1
- 1
- 6
0
votes
1 answer
Why hasn't disk usage decreased by 6,728k after hard linking a file away?
Given this sequence of commands…
$ pwd
/data/backup/rsnapshot
$ sudo du -csk daily.{2,3}/ruminant
1195040 daily.2/ruminant
36712 daily.3/ruminant
1231752 total
$ ls -isk /data/backup/rsnapshot/daily.3/ruminant/home/andy/vmunix \
…

grifferz
- 948
- 5
- 13
0
votes
2 answers
All of the NTFS hard links disappear, where are those 0KB hardlinks stored on disk and how to recover them?
This is Windows 7 x64 sp1 on a NTFS file system.
All hardlinks within C:\Windows\System32 folder disappear, and the Windows can't boot, because even the osloader, C:\Windows\System32\boot\Winload.exe also disappeared.
Nevertheless, the original…

Osiris
- 101
- 2
0
votes
2 answers
How does vzdump treats hard links pointing out of the virtual machine?
I have an OpenVZ container containing some hard links pointing to the host file system.
For example, I have run on the host ln /root/file /var/lib/vz/private/101/root/link
Now I'm asking myself: if I backup the VM 101 with vzdump, how will it treat…

lucaferrario
- 111
- 2
- 7
0
votes
1 answer
Cant remove linux ln hard links
I am using CentOS 6.3 and am logged in a root.
When I create a hard link by doing this:
ln /root.hdd /somedir/root.hdd
That works fine, the inode shows the same between the two files and everything functions as normal. But when I try to delete the…

Quinton Pike
- 101
- 4
0
votes
2 answers
Daemon to create hardlinks on Linux file server which finds identical files
I have a Linux server where I only store new files or rename directories and never edit files.
It contains backups from other Linux servers.
Due to certain circumstances there are quite some duplicate files, often with different names.
Is there any…

Christian
- 1,052
- 5
- 16
- 24
0
votes
1 answer
Hard link files within directory to reduce space usage, by "version"
I have an Ubuntu 12.04 server.
Server is running rsyncd (rsync daemon), and allows an external process to rsync in files to a given path, with full control of the file structure within that given path.
These files will be ultimately used by multiple…

Jon L.
- 318
- 2
- 9
0
votes
1 answer
Backing up an rsnapshot directory to a remote device
I have a local backup server that uses rsnapshot with hard links that contains about 10TBs of information which add about 4 to 5GBs per day. It's works great. I've been requested to set up and maintain a remote backup of the local rsnapshot…

GregS
- 1
0
votes
2 answers
What happens if hardlinks are not preserved?
I evaluate backup solution for common linux servers.
What happens if hard links are not preserved?
The only draw back I see: After the restore some MB more space is required. But this is no problem for my case.

guettli
- 3,591
- 17
- 72
- 123