Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

[Discuss] When you omit rsync '--update' option



On 05/03/2012 02:16 AM, Rich Braun wrote:
> I suffered a data loss yesterday and can't think of any possible recovery
> mechanism.  Perhaps I haven't thought it through completely; at the very least
> I can warn others about the dangers of rsync...
>
> Hindsight:  *always* use the --update (or -u) option to rsync.  I made the
> faulty assumption that older data would not overwrite newer data, by default;
> nope.  You have to specify this option.  I can't fathom *why* it's not the
> default, but...nope.
When you use rsync on a file or directory it will *ALWAYS* overwrite the
files at the destination unless you specify update. Also there is a not
in the man page about copying between different file systems.
In general I prefer to use rsnapshot for my backups where rsync uses
--link-dest so the target directory will be initially empty, but if the
same file exists in the link directory tree, then rsync will do a hard
link.

-- 
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix
PGP key id:3BC1EB90 
PGP Key fingerprint: 49E2 C52A FC5A A31F 8D66  C0AF 7CEA 30FC 3BC1 EB90





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org