rsync --link-dest issue on local fs

Matt Miller m.miller at duke.edu
Wed Apr 14 20:32:40 GMT 2004


> Here's the deal... I have a filesystem that I have populated by
> rsyncing from a filer (over NFS) using the --link-dest option to create
> incremental "snapshots" of the live data.  This part is working 
> fine... lots of links, much fewer blocks represented.  Now it is time 
> to migrate to
> a larger filesystem and, during the rsync,  the links are not being 
> kept in the process.
>
> - If I move the data with a regular mv command, all is well (but this
> large of a move is bound to fail before it completes, and some
> checksums would be nice.)
> - If I use rsync to move the data (and links) to the new filesystem...
> it doesn't recognize the existing files in the new filesystem as being
> the same as the links being copied over.
> - Both filesystems are local, permissions are identical
> - kernel 2.4.20-30.9smp
> - rsync version 2.5.7  protocol version 26
>
> The command used:
>
> /opt/rsync/bin/rsync -WHa --stats 
> --link-dest=/big2/200310240100_t3snap/
> /t3data/faculty/200310250100_t3snap/ /big2/200310250100_t3snap/
>
>
> listings for source, link-dest, and dest:
>
> [root at moss big2]# ls -al
> /t3data/faculty/200310240100_t3snap/whaley/Thumbs.db
> -rwxrwxrwx  134 root     root         7168 Aug 19  2003
> /t3data/faculty/200310240100_t3snap/whaley/Thumbs.db
> [root at moss big2]# ls -al /big2/200310240100_t3snap/whaley/Thumbs.db
> -rwxrwxrwx    1 root     root         7168 Aug 19  2003
> /big2/200310240100_t3snap/whaley/Thumbs.db
> [root at moss big2]# ls -al /big2/200310131050_t3snap/whaley/Thumbs.db
> -rwxrwxrwx    3 root     backup       7168 Aug 19  2003
> /big2/200310131050_t3snap/whaley/Thumbs.db
>
>
> any ideas on this?

matt



More information about the rsync mailing list