Re: rsync question -

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/15/2013 09:17 AM, Bob Goodwin - Zuni, Virginia, USA issued this missive:

Is rsync not supposed to append to the existing files or just copy over
them?

I would like to update /home/bobg/.thunderbird but the following simply
overwrites everything:

[root@box10 bobg]# rsync -avz /mnt/HOME1/bob/TBdBx07/
/home/bobg/.thunderbird/

In this case I have rsynced .thunderbird from box7 to an nfs server file
TBdBx07 and am in turn applying that to box10. I also want to do the
same with F20-Beta in Vmware Workstion which is how I got off on this ...

Do I misunderstand or am I simply doing it wrong?

No, you're not misunderstanding it. rsync looks at the source and
target and if there are differences, it copies from the source to the
target. In your case, you told rsync to copy everything inside the
/mnt/HOME1/bob/TBdBx07 directory (the source) to the
/home/bobg/.thunderbird directory (the target). If there are differences
between those two directories, rsync will try to make the target look
like the source as much as possible. Unless you add the "-u" option,
rsync will even overwrite files on the target that are "newer" than
those on the source.

The "-a" option to rsync tells it to try to do an archive (keep all
attributes, recurse down directories, etc.) and the "-z" means
"compress data during the transfer" (sorta silly when everything's on
the same LAN...it's more intended for WAN use). You probably wanted
"-avu --ignore-existing" to keep rsync from overwriting existing files
on the target (rsync will only copy over files that do NOT exist on the
target).

rsync is a very powerful tool, but as with all powerful tools, one
can easily injure oneself. Use adequate safety equipment and read the
manual! :-)
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
----------------------------------------------------------------------
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux