Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync: filter objects based on size and age #4432

Closed
davies opened this issue Feb 28, 2024 · 2 comments
Closed

sync: filter objects based on size and age #4432

davies opened this issue Feb 28, 2024 · 2 comments
Labels
kind/feature New feature or request priority/normal The default priority

Comments

@davies
Copy link
Contributor

davies commented Feb 28, 2024

rsync support --max-size and --min-size, rclone support --min-age --max-age, they are useful to incremental sync.

       --max-size=SIZE
              This tells rsync to avoid transferring any file that is larger than the specified SIZE.  A  numeric  value  can  be
              suffixed  with  a  string  to  indicate the numeric units or left unqualified to specify bytes.  Feel free to use a
              fractional value along with the units, such as --max-size=1.5m.

              This option is a TRANSFER RULE, so don't expect any exclude side effects.

              The first letter of a units string can be B (bytes), K (kilo), M (mega), G (giga), T (tera), or P (peta).   If  the
              string  is  a single char or has "ib" added to it (e.g. "G" or "GiB") then the units are multiples of 1024.  If you
              use a two-letter suffix that ends with a "B" (e.g. "kb") then you get  units  that  are  multiples  of  1000.   The
              string's letters can be any mix of upper and lower-case that you want to use.

              Finally,  if  the  string  ends with either "+1" or "-1", it is offset by one byte in the indicated direction.  The
              largest possible value is usually 8192P-1.

              Examples: --max-size=1.5mb-1 is 1499999 bytes, and --max-size=2g+1 is 2147483649 bytes.

              Note that rsync versions prior to 3.1.0 did not allow --max-size=0.

       --min-size=SIZE
              This tells rsync to avoid transferring any file that is smaller than the specified SIZE,  which  can  help  in  not
              transferring small, junk files.  See the --max-size option for a description of SIZE and other info.

              Note that rsync versions prior to 3.1.0 did not allow --min-size=0.
@davies davies added the kind/feature New feature or request label Feb 28, 2024
@hannahkamundson
Copy link

hannahkamundson commented Mar 20, 2024

I would like to take this ticket @davies

@SandyXSD SandyXSD added the priority/normal The default priority label May 29, 2024
@zhoucheng361
Copy link
Contributor

fixed by: #4912

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request priority/normal The default priority
Projects
None yet
Development

No branches or pull requests

4 participants