Skip to content

--skip functionality exists but is not well documented #152

@freblisna

Description

@freblisna

hello,

I want to flag something for the community about how to resume failed downloads that wasn't clear to me at first but now it is. I'm currently using the gdrive tool to transfer 1.2 TB of data from thousands of small files onto a remote server. The transfer crashed ~95% of the way (ugh) because of a virus-infected file (super cool, had no idea this file was bad -- also showed as infected on google drive). I spent a while trying to figure out if there was a way I can resume the transfer only for the missing files, like when using rsync. I tried running the transfer again with just --recursive but it would error out because of files already being present. I saw the --overwrite option but it was described only as "overwrite existing files as folders".

It turns out that passing --recursive and --overwrite will actually skip the files that are present and leave the ones that are there originally. Not sure under what condition it actually overwrites the previous file (maybe if the local one is smaller than the remote one?) but this is the functionality of skipping existing files, so that I don't have to run the previous 95% of my download again.

--> gdrive files download stringOfCharsAndNums --recursive --overwrite
^^this will not overwrite EVERYTHING but will download only the missing files.

related to #56

Can the description of --overwrite be updated to highlight this important feature?

Thanks for the really great tool! This is super helpful!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions