I've now got scripts that correctly backup all my primary partitions to a second drive. The original problem was that I copied them over without a time stamp, so that the first rsync run found no timestamps and wanted to copy them all over again. So I used: 'rsync -r -t -v --size-only $SOURCE $TARGET' My question is this: do I need to continue to use --size-only, or has the first rsync backup run put time stamps on all files? Thanks, Bill Tallman
On 3/30/07, William D. Tallman <wtallman@olypen.com> wrote:> I've now got scripts that correctly backup all my primary partitions to a > second drive. The original problem was that I copied them over without > a time stamp, so that the first rsync run found no timestamps and wanted > to copy them all over again. So I used: > > 'rsync -r -t -v --size-only $SOURCE $TARGET' > > My question is this: do I need to continue to use --size-only, or has > the first rsync backup run put time stamps on all files?The first rsync run put the time stamps on because you used -t (--times). You no longer need --size-only, and in fact you should stop using it to reduce the likelihood that a file is falsely considered up-to-date. However, you still need -t so that updated destination files get timestamps that identify them as up-to-date on future runs. Matt
On Fri, Mar 30, 2007 at 03:18:39PM -0700, William D. Tallman wrote:> My question is this: do I need to continue to use --size-only, or has > the first rsync backup run put time stamps on all files?You can drop the --size-only option after that first use with the -t option, because rsync will have adjusted the times of any files that had the same size. ..wayne..
On Fri, Mar 30, 2007 at 04:02:18PM -0700, Wayne Davison wrote:> On Fri, Mar 30, 2007 at 03:18:39PM -0700, William D. Tallman wrote: > > My question is this: do I need to continue to use --size-only, or has > > the first rsync backup run put time stamps on all files? > > You can drop the --size-only option after that first use with the -t > option, because rsync will have adjusted the times of any files that > had the same size. > > ..wayne..And that is exactly what I needed to know. Thanks, Wayne! Bill Tallman