That page seems to describe the exact behavior I want: The ability to make a "full backup" snapshot regularly, but with rsync comparing to an existing backup and using hard links where possible to avoid using more disk space to store multiple copies of files already on the destination.
I am currently testing rsync to simply copy a small test directory on the same disk, but thus far, I have not observed the --link-dest= option to create any hard links.
This creates a copy of folder 1 into folder 2 as expected. (And, BTW, the excludes in the named exclude file are behaving correctly, but that's not the issue)
This creates another copy of test folder 1 into folder 3. Now, I would expect that since all the items needed in 3 were just put into 2 and have not changed between the two operations, most (all) of the items in folder 3 would be hard links. However, using stat to examine the files in the various folders, the identically-named corresponding files in the two backups have unique inodes and only report 1 link each, so they are obviously separately-copied distinct files in the two destinations, not the hard links I am expecting.
NB, this is all on Mac OS X 10.4.11, but this is all purely command-line; my rsync --version reports as 2.6.9 with capabilities including hard links.
Ok, I'm trying to figure out how to reference a remote file using the rsync --link-dest parameter.
Here is the code I have so far:
#
# FILESERVER INCREMENTAL BACKUP SCRIPT
#
# Remove previous log file
rm /usr/local/bin/rsync-incremental.log
# Set daily variables
DAY0=`date -I`... (6 Replies)
I have a problem with tar. Taring a folder with a lot of contents, causes the tar to contain hard links to some files, seen with the same name but 0 in size.
The hard links don't exist in the first place. How can I prevent that from happening?
I am using the -T option with either -n or... (2 Replies)
Hi,
I'm trying to keep backups of my home directory (i.e. back it up every day or so) using rsync with link-dest.
This is how I do it,
rsync -avh --delete --link-dest=/media/disk/oldbackup/ /home/user/ /media/disk/newbackup
rm -f /media/disk/oldbackup
ln -s newbackup... (1 Reply)
Hi Experts,
Please help me out to find out difference between a hard link and a soft link.
I am new in unix plz help me with some example commands ( for creating such links).
Regards
S.Kamakshi :) (2 Replies)
Hi
PLease let me know the usage of Hard Link vs Soft Link
i.e what is the basic difference and what happens when one file is changed or deleted in both the cases???
thanks (3 Replies)
hello folks
how y'all doin
well i have some questions about symbolic link and hard link
hope some one answer me
i open terminal and join as root
and i wrote ln -s blah blah
then i wrote ls
i see red file called blah blah
but didn't understand what is this can some one explain and... (2 Replies)
Hi all!
I'd like to know the differences between hard links and soft links. I've already read the ln manpage, but i'm not quite sure of what i understood.
Does a hard link sort of copy the file to a new name, give it the same inode number and same rights?
What exactly should I do to do this:... (3 Replies)