rsync backup - order by size
Ty Miller
tyronmiller at gmail.com
Thu Mar 29 01:45:41 GMT 2007
Hey Matt,
Thanks for the quick response. That sounds exactly what I am after.
I considered using the --max-size and --min-size options, but I stopped
because I didn't know how the backups would handle two passes that only look
at subsets of the filesystem.
Currently I use an enhanced version of the incremental backup script found
on the rsync site (http://samba.anu.edu.au/rsync/examples.html) - same
concept though;
- Empty the daily incremental backup dir
- Backup to the "Current" dir, moving modified or deleted files to the daily
incremental dir
If I changed this to include the --min-size and --max-size so that there are
the following two rsync passes;
- Empty the daily incremental backup dir
- Backup small files to the "Current" dir, moving modified or deleted files
to the daily incremental dir
- Backup large files to the "Current" dir, moving modified or deleted files
to the daily incremental dir
How will this affect the reality of what happens? For example;
- Will the first pass cause the Current dir to only contain small files,
causing it to move the large files to the daily incremental dir?
- Will the second pass cause the Current dir to only contain large files,
causing it to move the small files to the daily incremental dir?
- Will this second pass cause the incremental dir to only contain small
files, or will this now contain everything, or just the modified/deleted
small and large files?
Any thoughts?
Thanks again,
Ty
-----Original Message-----
From: hashproduct at gmail.com [mailto:hashproduct at gmail.com] On Behalf Of Matt
McCutchen
Sent: Thursday, 29 March 2007 10:30 AM
To: Ty Miller
Cc: rsync at lists.samba.org
Subject: Re: rsync backup - order by size
On 3/28/07, Ty Miller <tyronmiller at gmail.com> wrote:
> Therefore, is there any way that I can get rsync to backup the files in
> order of [increasing] size?
Rsync has no option to transfer files in order of increasing size, but
there are two ways to accomplish something similar to that. See
comments #1 and #2 at:
https://bugzilla.samba.org/show_bug.cgi?id=4082
Matt
More information about the rsync
mailing list