diff --git a/docs/content/docs.md b/docs/content/docs.md index 7ad05625f..363fc4473 100644 --- a/docs/content/docs.md +++ b/docs/content/docs.md @@ -321,6 +321,8 @@ For the filtering options * `--files-from` * `--min-size` * `--max-size` + * `--min-age` + * `--max-age` * `--dump-filters` See the [filtering section](/filtering/). diff --git a/docs/content/filtering.md b/docs/content/filtering.md index 605f81f47..4b971a2bc 100644 --- a/docs/content/filtering.md +++ b/docs/content/filtering.md @@ -234,6 +234,31 @@ used. For example `--max-size 1G` means no files larger than 1GByte will be transferred. +### `--max-age` - Don't transfer any file older than this ### + +This option controls the maximum age of files to transfer. Give in +seconds or with a suffix of: + + * `ms` - Milliseconds + * `s` - Seconds + * `m` - Minutes + * `h` - Hours + * `d` - Days + * `w` - Weeks + * `M` - Months + * `y` - Years + +For example `--max-age 2d` means no files older than 2 days will be +transferred. + +### `--min-age` - Don't transfer any file younger than this ### + +This option controls the minimum age of files to transfer. Give in +seconds or with a suffix (see `--max-age` for list of suffixes) + +For example `--min-age 2d` means no files younger than 2 days will be +transferred. + ### `--delete-excluded` - Delete files on dest excluded from sync ### **Important** this flag is dangerous - use with `--dry-run` and `-v` first.