How to sync to a specific folder in Google DriveHow to upload a file to google drive?Can I sync arbitrary...
Writing rule stating superpower from different root cause is bad writing
Has the BBC provided arguments for saying Brexit being cancelled is unlikely?
Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?
Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?
Have astronauts in space suits ever taken selfies? If so, how?
Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)
Mathematical cryptic clues
Why doesn't H₄O²⁺ exist?
What typically incentivizes a professor to change jobs to a lower ranking university?
How can I make my BBEG immortal short of making them a Lich or Vampire?
Python: next in for loop
Is this a crack on the carbon frame?
What defenses are there against being summoned by the Gate spell?
How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?
How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?
Risk of getting Chronic Wasting Disease (CWD) in the United States?
How can bays and straits be determined in a procedurally generated map?
Modeling an IPv4 Address
Why, historically, did Gödel think CH was false?
What is the offset in a seaplane's hull?
Can divisibility rules for digits be generalized to sum of digits
Prove that NP is closed under karp reduction?
Why are electrically insulating heatsinks so rare? Is it just cost?
Theorems that impeded progress
How to sync to a specific folder in Google Drive
How to upload a file to google drive?Can I sync arbitrary google drive directories?no files in grive Google Drive FolderGoogle Drive for Ubuntu 15.04?How to set up Google Drive (grive) in Ubuntu 15.10?Google Drive folder with dual boot Windows10 / Ubuntu16.04Google-Drive Auto-Sync on Ubuntu 16.04Google drive as a system folder?Google Drive SyncSelective sync of specific folder on google drive with local storage folder on Ubuntu 18.04
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am using Ubuntu 16.04.
I am trying to sync my Google drive using grive2 in a way that only a specific folder is treated as my root folder in Google Drive i.e., only files and folders contained within the specified Google Drive folder are synced.
I am aware of the -p argument but for some reason I am not able to enter the correct path. Please can someone help.
I have tried the following commands.
grive -p ./my_directory -a
grive -p ./"my_directory" -a
grive -p "Id" -a #where ID is the id of the resource as per Google Drive API
Each of these is throwing the same error.
exception: /build/grive2-2Hxkkx/grive2-0.5.1/libgrive/src/util/File.cc(128): Throw in function void gr::File::Open(const boost::filesystem::path&, int, int)
Dynamic exception type: boost::exception_detail::clone_impl<gr::File::Error>
[gr::expt::BacktraceTag*] = #0 0x578d79 grive gr::Exception::Exception()
#1 0x580917 grive gr::File::Error::Error()
#2 0x57fd69 grive gr::File::Open(boost::filesystem::path const&, int, int)
#3 0x57fe82 grive gr::File::OpenForWrite(boost::filesystem::path const&, int)
#4 0x57fb89 grive gr::File::File(boost::filesystem::path const&, int)
#5 0x57f2cc grive gr::Config::Save()
#6 0x50b63d grive Main(int, char**)
#7 0x50c1e9 grive main
#8 0x7f885cad9830 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#9 0x50a4b9 grive _start
2, "No such file or directory"[boost::errinfo_file_name_*] = ./my_directory/.grive
[boost::errinfo_api_function_*] = open
I do not know how to specify the path argument.
google-drive grive
add a comment |
I am using Ubuntu 16.04.
I am trying to sync my Google drive using grive2 in a way that only a specific folder is treated as my root folder in Google Drive i.e., only files and folders contained within the specified Google Drive folder are synced.
I am aware of the -p argument but for some reason I am not able to enter the correct path. Please can someone help.
I have tried the following commands.
grive -p ./my_directory -a
grive -p ./"my_directory" -a
grive -p "Id" -a #where ID is the id of the resource as per Google Drive API
Each of these is throwing the same error.
exception: /build/grive2-2Hxkkx/grive2-0.5.1/libgrive/src/util/File.cc(128): Throw in function void gr::File::Open(const boost::filesystem::path&, int, int)
Dynamic exception type: boost::exception_detail::clone_impl<gr::File::Error>
[gr::expt::BacktraceTag*] = #0 0x578d79 grive gr::Exception::Exception()
#1 0x580917 grive gr::File::Error::Error()
#2 0x57fd69 grive gr::File::Open(boost::filesystem::path const&, int, int)
#3 0x57fe82 grive gr::File::OpenForWrite(boost::filesystem::path const&, int)
#4 0x57fb89 grive gr::File::File(boost::filesystem::path const&, int)
#5 0x57f2cc grive gr::Config::Save()
#6 0x50b63d grive Main(int, char**)
#7 0x50c1e9 grive main
#8 0x7f885cad9830 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#9 0x50a4b9 grive _start
2, "No such file or directory"[boost::errinfo_file_name_*] = ./my_directory/.grive
[boost::errinfo_api_function_*] = open
I do not know how to specify the path argument.
google-drive grive
add a comment |
I am using Ubuntu 16.04.
I am trying to sync my Google drive using grive2 in a way that only a specific folder is treated as my root folder in Google Drive i.e., only files and folders contained within the specified Google Drive folder are synced.
I am aware of the -p argument but for some reason I am not able to enter the correct path. Please can someone help.
I have tried the following commands.
grive -p ./my_directory -a
grive -p ./"my_directory" -a
grive -p "Id" -a #where ID is the id of the resource as per Google Drive API
Each of these is throwing the same error.
exception: /build/grive2-2Hxkkx/grive2-0.5.1/libgrive/src/util/File.cc(128): Throw in function void gr::File::Open(const boost::filesystem::path&, int, int)
Dynamic exception type: boost::exception_detail::clone_impl<gr::File::Error>
[gr::expt::BacktraceTag*] = #0 0x578d79 grive gr::Exception::Exception()
#1 0x580917 grive gr::File::Error::Error()
#2 0x57fd69 grive gr::File::Open(boost::filesystem::path const&, int, int)
#3 0x57fe82 grive gr::File::OpenForWrite(boost::filesystem::path const&, int)
#4 0x57fb89 grive gr::File::File(boost::filesystem::path const&, int)
#5 0x57f2cc grive gr::Config::Save()
#6 0x50b63d grive Main(int, char**)
#7 0x50c1e9 grive main
#8 0x7f885cad9830 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#9 0x50a4b9 grive _start
2, "No such file or directory"[boost::errinfo_file_name_*] = ./my_directory/.grive
[boost::errinfo_api_function_*] = open
I do not know how to specify the path argument.
google-drive grive
I am using Ubuntu 16.04.
I am trying to sync my Google drive using grive2 in a way that only a specific folder is treated as my root folder in Google Drive i.e., only files and folders contained within the specified Google Drive folder are synced.
I am aware of the -p argument but for some reason I am not able to enter the correct path. Please can someone help.
I have tried the following commands.
grive -p ./my_directory -a
grive -p ./"my_directory" -a
grive -p "Id" -a #where ID is the id of the resource as per Google Drive API
Each of these is throwing the same error.
exception: /build/grive2-2Hxkkx/grive2-0.5.1/libgrive/src/util/File.cc(128): Throw in function void gr::File::Open(const boost::filesystem::path&, int, int)
Dynamic exception type: boost::exception_detail::clone_impl<gr::File::Error>
[gr::expt::BacktraceTag*] = #0 0x578d79 grive gr::Exception::Exception()
#1 0x580917 grive gr::File::Error::Error()
#2 0x57fd69 grive gr::File::Open(boost::filesystem::path const&, int, int)
#3 0x57fe82 grive gr::File::OpenForWrite(boost::filesystem::path const&, int)
#4 0x57fb89 grive gr::File::File(boost::filesystem::path const&, int)
#5 0x57f2cc grive gr::Config::Save()
#6 0x50b63d grive Main(int, char**)
#7 0x50c1e9 grive main
#8 0x7f885cad9830 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#9 0x50a4b9 grive _start
2, "No such file or directory"[boost::errinfo_file_name_*] = ./my_directory/.grive
[boost::errinfo_api_function_*] = open
I do not know how to specify the path argument.
google-drive grive
google-drive grive
asked Jan 16 '18 at 21:12
Rachit KingerRachit Kinger
49128
49128
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I'm a bit confused by what you mean by "only a specific folder is treated as my root folder in Google Drive i.e., only files and folders contained within the specified Google Drive folder are synced".
Do you want:
a) my_directory = your google drive root, as I read the first part of your sentence or
b) my_directory = a folder named my_directory in google drive, how I read the second part.
This is how I achieve b) (in my case, my_directory is in ~/grive):
cd $HOME/grive
grive -s my_directory
I only had to use -a the first time btw.
by 'only a specific folder....' I mean that gdrive ignores all the other folders are higher in hierarchy from that folder and considers folders and files that are children of that specific folder. I don't think the your suggestion works for me because to use the-s
argument I would have had to download the entire gdrive first. At least that is what my experience of using that argument has been so far
– Rachit Kinger
Feb 12 '18 at 5:38
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f996752%2fhow-to-sync-to-a-specific-folder-in-google-drive%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I'm a bit confused by what you mean by "only a specific folder is treated as my root folder in Google Drive i.e., only files and folders contained within the specified Google Drive folder are synced".
Do you want:
a) my_directory = your google drive root, as I read the first part of your sentence or
b) my_directory = a folder named my_directory in google drive, how I read the second part.
This is how I achieve b) (in my case, my_directory is in ~/grive):
cd $HOME/grive
grive -s my_directory
I only had to use -a the first time btw.
by 'only a specific folder....' I mean that gdrive ignores all the other folders are higher in hierarchy from that folder and considers folders and files that are children of that specific folder. I don't think the your suggestion works for me because to use the-s
argument I would have had to download the entire gdrive first. At least that is what my experience of using that argument has been so far
– Rachit Kinger
Feb 12 '18 at 5:38
add a comment |
I'm a bit confused by what you mean by "only a specific folder is treated as my root folder in Google Drive i.e., only files and folders contained within the specified Google Drive folder are synced".
Do you want:
a) my_directory = your google drive root, as I read the first part of your sentence or
b) my_directory = a folder named my_directory in google drive, how I read the second part.
This is how I achieve b) (in my case, my_directory is in ~/grive):
cd $HOME/grive
grive -s my_directory
I only had to use -a the first time btw.
by 'only a specific folder....' I mean that gdrive ignores all the other folders are higher in hierarchy from that folder and considers folders and files that are children of that specific folder. I don't think the your suggestion works for me because to use the-s
argument I would have had to download the entire gdrive first. At least that is what my experience of using that argument has been so far
– Rachit Kinger
Feb 12 '18 at 5:38
add a comment |
I'm a bit confused by what you mean by "only a specific folder is treated as my root folder in Google Drive i.e., only files and folders contained within the specified Google Drive folder are synced".
Do you want:
a) my_directory = your google drive root, as I read the first part of your sentence or
b) my_directory = a folder named my_directory in google drive, how I read the second part.
This is how I achieve b) (in my case, my_directory is in ~/grive):
cd $HOME/grive
grive -s my_directory
I only had to use -a the first time btw.
I'm a bit confused by what you mean by "only a specific folder is treated as my root folder in Google Drive i.e., only files and folders contained within the specified Google Drive folder are synced".
Do you want:
a) my_directory = your google drive root, as I read the first part of your sentence or
b) my_directory = a folder named my_directory in google drive, how I read the second part.
This is how I achieve b) (in my case, my_directory is in ~/grive):
cd $HOME/grive
grive -s my_directory
I only had to use -a the first time btw.
answered Feb 3 '18 at 5:16
hope_it_helpshope_it_helps
1
1
by 'only a specific folder....' I mean that gdrive ignores all the other folders are higher in hierarchy from that folder and considers folders and files that are children of that specific folder. I don't think the your suggestion works for me because to use the-s
argument I would have had to download the entire gdrive first. At least that is what my experience of using that argument has been so far
– Rachit Kinger
Feb 12 '18 at 5:38
add a comment |
by 'only a specific folder....' I mean that gdrive ignores all the other folders are higher in hierarchy from that folder and considers folders and files that are children of that specific folder. I don't think the your suggestion works for me because to use the-s
argument I would have had to download the entire gdrive first. At least that is what my experience of using that argument has been so far
– Rachit Kinger
Feb 12 '18 at 5:38
by 'only a specific folder....' I mean that gdrive ignores all the other folders are higher in hierarchy from that folder and considers folders and files that are children of that specific folder. I don't think the your suggestion works for me because to use the
-s
argument I would have had to download the entire gdrive first. At least that is what my experience of using that argument has been so far– Rachit Kinger
Feb 12 '18 at 5:38
by 'only a specific folder....' I mean that gdrive ignores all the other folders are higher in hierarchy from that folder and considers folders and files that are children of that specific folder. I don't think the your suggestion works for me because to use the
-s
argument I would have had to download the entire gdrive first. At least that is what my experience of using that argument has been so far– Rachit Kinger
Feb 12 '18 at 5:38
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f996752%2fhow-to-sync-to-a-specific-folder-in-google-drive%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown