Hi guys. I’ve install it for sync my account Google Drive. In the folder appears folders and files with an rare extension .cloud.
I need sync, the status f console is:
isActivated: True hasSession: True
email: xxxxxxxxx@xxxxxxxx.net accountType: Google
syncEnabled: True version: prod 946
placeholderThreshold: neverDownload autoUnsyncThreshold: never
downloadThrottlingThreshold: unlimited uploadThrottlingThreshold: normal
autoTrashThreshold: never Mounts: 1
xlThreshold: never Backups: 0
Hi @juanfer,
odrive is built around the idea of “progressive syncing”, which means you can browse all of your storage, but you only need to download the files you want immediate access to.
For syncing with the CLI, take a look at steps #5 and #6 in our documentation here
For performing a recursive sync, take a look at this information here:
I dont know how to write well that sentence. I don’t know why i have to write that extension “.cloudf”. Because in my folder there are a lot of my files but with “.cloud” without an F.
I have tryed a lot of combiation but nothing works:
juanfer@xxxxxxxxxxx:~$ "$HOME/.odrive-agent/bin/odrive" sync "$HOME/odrive-agent-mount/Google Drive.cloudf"
There was an error sending the command, please make sure odrive agent or desktop is running.
Hi @juanfer,
Okay, you’ve already expanded the “Google Drive.cloudf” placeholder into a real directory “Google Drive”. Now you can sync items inside Google Drive by specifying them in the same way.
To do this, you can either:
run "$HOME/.odrive-agent/bin/odrive" sync "$HOME/odrive-agent-mount/Google Drive/[name of folder or file placeholder here]"
or cd to "$HOME/odrive-agent-mount/Google Drive and then run "$HOME/.odrive-agent/bin/odrive" sync ./[name of folder or file placeholder here]"
Make sure you are using $HOME instead of home. $HOME will resolve to your user home directory, which is probably something like /home/juanfer.
The shutdown command will stop the agent process, so you will need to start it again using something like this: nohup "$HOME/.odrive-agent/bin/odriveagent" > /dev/null 2>&1 &
The path is probably "$HOME/.odrive-agent/bin/odrive" sync "$HOME/odrive-agent-mount/Google Drive/CarpetaPrueba.cloudf"
cloud and cloudf files are “placeholder” files that represent remote files and folders. cloudf represents a remote folder and cloud represents a remote file. Everything will be placeholders, initially, so you will need to sync the items you want to change from placeholders to “real” files/folders.
If you want to download an entire directory, you will need to use the recursive command I linked above. For example: exec 6>&1;num_procs=3;output="go"; while [ "$output" ]; do output=$(find "[path to folder here]" -name "*.cloud*" -print0 | xargs -0 -n 1 -P $num_procs "$HOME/.odrive-agent/bin/odrive" sync | tee /dev/fd/6); done
Where [path to folder here] is a “real” folder that you have already run the sync command on.
So the sequence would be something like this to download the entire CarpetaPrueba folder:
Creates the folder, but content doesn’t aren’t downloaded. (a lot of .cloud and .cloudf in there)
But when i wrote:
juanfer@xxxxxxxxxx:~$ exec 6>&1;num_procs=3;output="go"; while [ "$output" ]; do output=$(find "$HOME/odrive-agent-mount/Google Drive/CarpetaPrueba" -name "*.cloud*" -print0 | xargs -0 -n 1 -P $num_procs python $(ls -d "$HOME/.odrive/bin/"*/ | tail -1)odrive.py sync | tee /dev/fd/6); done
ls: no se puede acceder a '/home/juanfer/.odrive/bin/*/': No existe el archivo o el directorio
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
python: can't open file 'odrive.py': [Errno 2] No such file or directory
Hi @juanfer,
Yes, the remote delete will be held in the odrive trash. The remote file will not be deleted until you use the emptytrash command.
To free up local space without deleting, you would want to use the Premium feature “unsync”.
More on unsync here. This covers the desktop client, but the feature is the same in the agent with the unsync command.
More on the odrive trash here. This, again, convers the desktop client, but the feature is the same as the emptytrash command and restoretrash command.
Hi, i’ve prooved succesfully the emptytrash command. Tks.
I’ve syncronized another folder. Create a copy of a file inside that folder to see the upload of new information to cloud and, i have an error, look:
juanfer@xxxxxxxxxx:~$ "$HOME/.odrive-agent/bin/odrive" sync "$HOME/odrive-agent-mount/Google Drive/Avatares"
Unable to sync Avatares. Please use a placeholder path.