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.
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…