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

How to avoid uploading a file if that file exists #2310

Closed
erhanbaris opened this issue Nov 14, 2023 · 4 comments
Closed

How to avoid uploading a file if that file exists #2310

erhanbaris opened this issue Nov 14, 2023 · 4 comments
Labels
question Further information is requested

Comments

@erhanbaris
Copy link

I uploaded 252GB files to artifactory and i would like to skip uploading the same files to artifactory. But, when I try to execute upload the system automatically tries to upload all files again.

Is there any way to do that?

Command:
jf rt u --flat=false "./" generic-local/images/

@erhanbaris erhanbaris added the question Further information is requested label Nov 14, 2023
@yahavi
Copy link
Member

yahavi commented Nov 14, 2023

Hi @erhanbaris,
Thank you for using the JFrog CLI.

This feature is already supported out-of-the-box in the JFrog CLI.
It's referred to as "Checksum Deploy" - before uploading a file, it computes the file's checksum. If that checksum already exists in Artifactory, it bypasses uploading the file's content.

Feel free to inform us if there's anything more you need assistance with.

@erhanbaris
Copy link
Author

Thanks @yahavi
I don't know why but jfrog still uploads the same files, also, those files are located on a remote server and that server does not have an internet connection. So, calculating checksum and uploading files takes a lot of time. Is there any option to check file exists (with name) instead of checksum

@yahavi
Copy link
Member

yahavi commented Nov 15, 2023

@erhanbaris
You can try this search command to check the existence of the desired file:

jf rt s "generic-local/images/filename" --fail-no-op

If the command yields 0, it means the file exists, hence, skip the upload.

@erhanbaris
Copy link
Author

Thanks

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

No branches or pull requests

2 participants