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

timestamp filter does not work for dsync? #179

Open
andryan opened this issue Nov 15, 2020 · 1 comment
Open

timestamp filter does not work for dsync? #179

andryan opened this issue Nov 15, 2020 · 1 comment

Comments

@andryan
Copy link

andryan commented Nov 15, 2020

Hi,

I'm trying to use the timestamp filtering on dsync, copied from readme:

ag@media03:~$ s4cmd dsync --last-modified-after='2 months ago' -n /mnt/volume_sgp1_02/recordings/ s3://b2bbcdn/videos/
Usage: s4cmd [options]

s4cmd: error: Option --last-modified-after: invalid datetime value: '2 months ago'

s4cmd version 2.1.0
Python 3.6.9

I tried with different values ("2020-11-15", etc.) on both --last-modified-after and --last-modified-before parameters but did not seem to make any difference in the list of files being affected. Does the filter apply to S3 src/dst only?

Can you provide some examples on how to properly utilize these 2 parameters?

Cheers,
Andryan

@andryan
Copy link
Author

andryan commented Nov 15, 2020

eventually I decided to add a new parameter instead: --skip-files-older-than-seconds

PR #180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant