minio / mc

Simple | Fast tool to manage MinIO clusters :cloud:
https://min.io/download
GNU Affero General Public License v3.0
2.82k stars 541 forks source link

./mc mirror --older-than 0d2h0m --not working #3845

Closed Bhagi33 closed 2 years ago

Bhagi33 commented 2 years ago

./mc mirror --older-than 0d2h0m not working.

./mc ls backup1/srcbucket --insecure [2021-10-22 11:41:13 CEST] 183KiB 199 mob data recharge.jpg [2021-10-22 11:41:13 CEST] 174KiB 51 jiorouter echarge.jpg [2021-10-22 10:04:24 CEST] 1.6MiB Postgres+Service+User+Guide.doc [2021-10-22 10:04:24 CEST] 64B credentials.json [2021-10-22 12:25:36 CEST] 0B templates/ [k8st1 ~]$ ./mc ls backup2/destbucket --insecure [2021-10-22 12:25:45 CEST] 0B templates/ [k8st1 ~]$ ./mc mirror --older-than 0d2h0m backup1/srcbucket/ backup2/destbucket/ --insecure this command redirecting to .mc mirror --help mode

klauspost commented 2 years ago

--insecure should be before your source.

harshavardhana commented 2 years ago

[k8st1 ~]$ ./mc mirror --older-than 0d2h0m --insecure backup1/srcbucket/ backup2/destbucket/

All flags are presented together either as options for mirror sub command or

[k8st1 ~]$ ./mc mirror backup1/srcbucket/ backup2/destbucket/ --older-than 0d2h0m --insecure

At the end