-
Notifications
You must be signed in to change notification settings - Fork 144
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
File skipping with (-d) isn't working and reuploads the file #101
Comments
Weird, it works just fine here
One more thing, that your DriveLink is not showing after upload and it's not doing the pretty logging ( as in the above log ). Anyway, run below commands and give me the log1 and log2 file printf "" >> test123test
gupload test123test -o -D &> log1
gupload test123test -d -D &> log2
for i in log1 log2; do
values="$(grep -oE "(CLIENT_ID|CLIENT_SECRET|REFRESH_TOKEN|ACCESS_TOKEN|ROOT_FOLDER|WORKSPACE_FOLDER_ID)=.*" "${i}")"
eval "${values}"
for j in CLIENT_ID CLIENT_SECRET REFRESH_TOKEN ACCESS_TOKEN ROOT_FOLDER WORKSPACE_FOLDER_ID; do
string="$(eval printf "%s" \"\$"${j}"\")"
sed "s|${string}|"*****"|g" -i "${i}"
done
done |
Yeah, I noticed the pretty-printing isn't happening either. Here are the log files Log1: https://del.dog/raw/ivuyriphai It again uploaded both files on shared google drive. |
So, it is not able to search files, probably because of team drive i pushed some fixes, run below command to pull the fixes and try again
|
@Akianonymus maybe the commits weren't pushed? The file shows it was updated 2 days ago (from the master branch): |
If you look closely, -B flag is used, which fetches the installation from branch, in this case, will be wip ( i pushed the changes to wip branch ). anyway, try again, i forgot to push a local change. |
Also, provide the logs again if it doesn't work. |
My bad, I just looked at the first part. Here's the logs, the issue is still not fixed: Log1: https://del.dog/raw/pestucyfoh |
@Anon-Exploiter Update and try again, should be working this time ( i tested my self on a team drive ). |
@Akianonymus, it's still the same, here are the logs. Log1: https://del.dog/raw/odubighucr POC: |
@Anon-Exploiter Hmm, alright, i wonder why it's still same. Tell me exactly how you did the initial setup. Specifically the details related to the team drive stuff and root dir setup. This is what i did. I just created a shared drive, made a folder, and used it as root folder. -d flag was not working, but after the fix i applied, it started. ( are you on telegram ? conversation would be much easier there, no push though, here is fine too, just this bug is bugging me 😂 and i wanna fix it fast ) |
@Akianonymus hahaha, yeah sure. Same here, I almost consumed 500GB+ upload depending on the skip flag 😅 I'm on discord: Umar_0x01#0079 Let me try the latest commit you've done as well. Also, I can give you contributor access to my shared drive for testing xD Let's continue it in discord. |
Also, for the initial installation, I used the one-liner from here: I've created a Ubuntu 18.04 LTS instance on AWS and am testing on that since. Details: ~$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic |
@Anon-Exploiter Check discord. |
Done, added. |
A new release is created: https://github.com/labbots/google-drive-upload/releases/tag/v3.3.1 |
Thanks for the support, works fine now! 🕺 |
Hi,
Thanks for the awesome script, wasn't able to find shared drive uploading functionality in many overrated scripts.
I just noticed that
-d
is supposed to skip the file if it is uploaded already but that doesn't happen (I'm sure that's the intended functionality), the script creates a new file regardless of the file existing and this will happen as many times as we execute the command.Here are some screenshots to help explain the issue.
Uploading:
POC:
Environment:
OS: Ubuntu 18.04 LTS
Uploading to: Google Shared Drive
Let me know if further information is required to reproduce the issue.
The text was updated successfully, but these errors were encountered: