Merge lp:~jontai/openvista-gtm-integration/bug458314 into lp:openvista-gtm-integration

Proposed by Jon Tai
Status: Merged
Merged at revision: not available
Proposed branch: lp:~jontai/openvista-gtm-integration/bug458314
Merge into: lp:openvista-gtm-integration
Diff against target: 12 lines
1 file modified
scripts/usr/bin/ovbackup (+1/-1)
To merge this branch: bzr merge lp:~jontai/openvista-gtm-integration/bug458314
Reviewer Review Type Date Requested Status
jeff.apple Approve
Review via email: mp+13794@code.launchpad.net
To post a comment you must log in.
Revision history for this message
jeff.apple (jeff-apple) wrote :

Loooks fine, at least as well as I understand the problem. We are losing the implicit -t option to rsync. Is that OK?

review: Approve
Revision history for this message
Jon Tai (jontai) wrote :

> Loooks fine, at least as well as I understand the problem. We are losing the
> implicit -t option to rsync. Is that OK?

The actual copy is done with "cp -a", which should preserve the permissions and timestamps. The rsync is just a check. With -rl, rsync still checks timestamps, but if were to do a copy, it would use the transfer time, whereas with -t (or -a, which includes -t), it would use the source file's timestamp.

I'm going to merge.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'scripts/usr/bin/ovbackup'
2--- scripts/usr/bin/ovbackup 2009-08-11 20:47:56 +0000
3+++ scripts/usr/bin/ovbackup 2009-10-22 16:40:22 +0000
4@@ -165,7 +165,7 @@
5 #
6 # FIXME: if the routines did change, we should probably try again instead of
7 # just aborting - rsync the routines, then re-run the database backup
8-output=`rsync -ai --delete --dry-run "$root/$instance/routines/" "$tempdir/routines/"`
9+output=`rsync -rli --delete --dry-run "$root/$instance/routines/" "$tempdir/routines/"`
10 [ -z "$output" ] || exit_with_error "ovbackup" "Routines changed during backup"
11
12 # if we get here, that means that the routines haven't changed, and either the

Subscribers

People subscribed via source and target branches