Questions tagged [hardlink]

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.

68 questions
1
vote
1 answer

backup files to a remote server with multiple versions using rsync hardlink option

To use rsync hard link option to backup files remotely so that remote backup server could keep multiple versions of the backups, both the link-dest directory and the target directory have to be on the same remote disk. But 'rsync --link-dest' option…
Purres
  • 239
  • 1
  • 4
  • 18
1
vote
0 answers

How to secure tmp directory from hard link attacks when host doesn't allow partitioning

I'm a new sysadmin in the making, have learned that I need to have /tmp and /home directories on separate partitions in order to prevent possibilities of privilege escalation through hard links based attack. Unfortunately my vps host doesn't allow…
Vishal
  • 11
  • 1
1
vote
1 answer

Is there a way to create a 'trackable' link (~hard link) to a folder on Windows (Windows XP in particular)?

Lets suppose that there are: a folder and a junction point or a symlink to that folder When the original folder is moved to a new location, both the junction point and the symlink fail (point to an orphaned location). The failure of the link is…
colemik
  • 759
  • 1
  • 12
  • 24
1
vote
1 answer

Speeding up directory creation / file linking

I'm using rsnapshot for backups. Currently that means every time an update runs (even without any data difference) I get a copy of ~100M of only the directory structure + inode list. The files are almost exclusively hardlinks. The potential problem…
viraptor
  • 1,296
  • 6
  • 21
  • 41
1
vote
4 answers

Skipping hardlinks when using TSM Backup

We need to backup a filesystem with lots of hardlinks. Since there are several hardlinks for each "true" file, we would like to skip all the hardlinks when backing up the filesystem to avoid n exact copies of each file. The backup is done using…
1
vote
2 answers

bind (hardlink) one directory to many places

I need to "bind" one directory to many chrooted places. I know that I can do "mount -o bind", but this requires special processing on startup each time (run the mount). Is there a way to do it on the filesystem directly? My fs is ext4 and it seems…
PoltoS
  • 131
  • 5
1
vote
1 answer

directory of hardlinks on NTFS appears to be consuming more space than it should

Windows 2008 R2 and Windows 7 Ultimate both exhibit this behaviour... So I have directory structure like... YEAR\MONTH\file_x.ext, where YEAR goes back to 2007 and each MONTH directory contains anywhere from hundreds to thousands (2500 max right…
Sam Axe
  • 163
  • 6
1
vote
2 answers

Hardlink files not the same

I created a hardlink of a file as follows: ln /path/to/source/file1 /path/to/target/file2 Using md5sum, the two files are identical. After a while, the source file has been modified by another program. The target file does not get "updated". The…
SabreWolfy
  • 368
  • 1
  • 2
  • 13
1
vote
3 answers

Using hardlinks over network drives

I know that you can fsutil hardlink on local drives, however I'd like to be able to hardlink on a network drive over to a different network drive. Is this possible? I presume not as the two drives are held on seperate machines to each other, and if…
Psytronic
  • 123
  • 1
  • 4
1
vote
1 answer

Why is rsync only hard linking some unchanged files?

I'm using rsync for incremental backups, using the --link-dest option to point to the previous backup so that unchanged files are hard linked to there. This is working, but not for all files. For example, I've a directory in the backup containing…
IpsRich
  • 173
  • 8
1
vote
2 answers

Does rsync preserve hardlinks on the destination when source files are identical but separate?

I am running a (Linux based) rsync server for software distribution. A (Windows based) source repository server which is outside my control pushes software packages to it via rsync, and about a hundred satellite servers worldwide pull from it, also…
Tilman Schmidt
  • 4,101
  • 12
  • 27
1
vote
0 answers

rsync -H with --link-dest and potential link corruption

man rsync for -H includes: "If you specify a --link-dest directory that contains hard links, the linking of the destination files against the --link-dest files can cause some paths in the destination to become linked together due to the --link-dest…
Gareth
  • 31
  • 4
1
vote
2 answers

Selective syncronisation of two directories in UNIX (Solaris)

I'm wondering if anyone knows of a nice way to partially duplicate (hard link) files between two directory structures? My current fall back is a script invoked by cron. As background: I ask since I have two groups who both need to access a body of…
Tom Duckering
  • 235
  • 1
  • 13
1
vote
0 answers

libvirt qemu AppArmor 9p hard links

I am using libvirt with qemu on a debian host. One virtual machine has a 9p mount point defined:
felinira
  • 111
  • 1
0
votes
0 answers

rsync duplicate tree using hard links

I would like to duplicate a folder structure containing many directories and files using hard links for all the files instead of making new copies of the files. I thought I could do this with rsync, but the -H option that I thought did this only…
lbutlr
  • 113
  • 6