Stuart Barkley wrote: > On Wed, 27 Feb 2013 at 11:34 -0000, m.roth@xxxxxxxxx wrote: > >> Is there any way to have rsync compare against a file with a *different* >> name? >> >> What I'd like to do is compare a vm - whatsit.img against a backup - >> whatsit.current, that's a symlink to whatsit.timestamp, and if >> different, *then* make the copy (which my script will then move to >> whatsit.newtimestamp, and change the symlink to point to the new one, >> then remove the old (or maybe save an older copy or two). <snip> > I'm not quite sure what you are trying to do. A couple of things that > I do include: <snip> > 3) Preserve historic backups as hard links (using 'cp'). This leaves > 'backup/whatsit' as the current version (slightly inconsistent during > the backup operation). <snip> THANK YOU! Duhhhhh... Lost: small, squishy wrinkled grey thing. If found, return here, sentimental value only. I think rsync -HPavx whatsit.img backup_dir/ ln backup_dir/whatsit.img backup_dir/whatsit.<timestamp> solves my problem. mark _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos