an rsync question

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



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).

So:
backupdir
  \ whatsit.20130101 (backup of whatsit.img)
    whatsit.current -> whatsit.20130101
    whatsit.20121201

After script w/ rsync
backupdir
  \ whatsit.20130201 (backup of whatsit.img)
    whatsit.current -> whatsit.20130201
    whatsit.20130101

     mark


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux