Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Oct 2009 18:46:24 -0600 (MDT)
From:      "Peter" <fbsdq@peterk.org>
To:        freebsd-questions@freebsd.org
Subject:   cpdup always copying files even if they are the same [but diff  user]
Message-ID:  <a0ca9f5d9694f4f5e483b75c18b0bddb.squirrel@webmail.pknet.net>

next in thread | raw e-mail | index | archive | help
iH,

If the src and dst files are owned by different users, cpdup copies the
file even if it the same.
Copying from root -> user it always copies the file
Copying from user -> user it notices that the file has not changed.
Copying form user -> user1 it always copies the file


newserv:$ls -lh cpdup.*
-rw-r--r--  1 root  wheel    76B Oct 23 18:29 cpdup.root
newserv:$cat cpdup.root
cpdup-1.12          A comprehensive filesystem mirroring and backup program
newserv:$cpdup -vvv cpdup.root cpdup.user
cpdup.user                       copy-ok
newserv:$cpdup -vvv cpdup.root cpdup.user
cpdup.user                       copy-ok
newserv:$cpdup -vvv cpdup.user cpdup.user.1
cpdup.user.1                     copy-ok
newserv:$cpdup -vvv cpdup.user cpdup.user.1
cpdup.user.1                     nochange
newserv:$/usr/bin/cksum cpdup*
1301364783 76 cpdup.root
1301364783 76 cpdup.user
1301364783 76 cpdup.user.1
newserv:$ls -li cpdup.*
 4 -rw-r--r--  1 root   wheel  76 Oct 23 18:29 cpdup.root
13 -rw-r--r--  1 user   wheel  76 Oct 23 18:29 cpdup.user
12 -rw-r--r--  1 user   wheel  76 Oct 23 18:29 cpdup.user.1

The copying takes a lot longer when going from server to server and
different users.

]Peter[




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a0ca9f5d9694f4f5e483b75c18b0bddb.squirrel>