rights messed up after moving installation

Reindl Harald h.reindl at thelounge.net
Tue Nov 6 23:47:03 UTC 2012



Am 07.11.2012 00:16, schrieb lee:
> Reindl Harald <h.reindl at thelounge.net> writes:
>> oversimplyfied:
>> * on both sides a rsync-process is running
>> * both are making a checksum of the same data-area
>> * let's say 250 blocks
>> * only this cheksum is transmitted and decides transmit data itself
>> * attributes are also listed on both sides and compared
> 
> I thought it works like this, which involves reading all the files on
> both sides.  For the purpose of copying files from one place to another
> on the same machine, I'm wondering if it might be more efficient to go
> by file modification times and file size 

it does usually!

you can force --checksum as param
-c, --checksum  skip based on checksum, not mod-time & size

but that does not change the fact that it syncs attributes too
without --checksum, i am using --checksum once per month to
make sure all is 100% consistent

rsync --help
man rsync

there are really A LOT of parameters

--dry-run as first one to test what happens in combination
with --progress / --verbose

"--times --update --perms --owner --group" without delete is
my favorite if i have to make small changes on php-modules to sync
back only my changed files and prevent overwrite files in upload-areas
while the worst-case here is that i push back a deleted file but users
not often delete anything :-)

"--exclude=folder1 --exclude=folder2" is also nice

-W, --whole-file copy files whole (without delta-xfer algorithm)
amkes sometimes sense if the checksum stuff is overhead for sure

--exclude=PATTERN       exclude files matching PATTERN
--exclude-from=FILE     read exclude patterns from FILE

 -b, --backup                make backups (see --suffix & --backup-dir)
     --backup-dir=DIR        make backups into hierarchy based in DIR
     --suffix=SUFFIX         set backup suffix (default ~ w/o --backup-dir)

finally: a swiss knife for dealing with file transfers


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20121107/e8c8e395/attachment-0001.sig>


More information about the users mailing list