Hi @Zero_G,
This isn’t something I have seen before. Possibly something with the file descriptor being used/still in use? You could try modifying the command to use a different df, like 7.
exec 7>&1;num_procs=2;output="go"; while [ "$output" ]; do output=$(find "[path to odrive folder to sync here]" -name "*.cloudf" -print0 | xargs -0 -n 1 -P $num_procs python $(ls -d "$HOME/.odrive/bin/"*/ | tail -1)odrive.py sync | tee /dev/fd/7); done
odrive-sync-log.sh: riga 6: ~/Cloud/odrive/logs/20170917232456.odrive.log: File o directory non esistente usage: odrive.py sync [-h] placeholderPath odrive.py sync: error: too few arguments
Hi @william.melatini,
It looks like the find command in the odrive-script.sh is not finding any files to push to odrive to sync (basically, the list is empty). You should verify that the find command, by itself, is finding .cloudf files to sync.
Thanks for the response. Is there a roadmap item to support this? I would really be in favor of this. I know there are a few forum discussions about decryption automation outside of odrive ( ie https://github.com/jordanbtucker/odrive-decrypt from some ), but:
It’s not an official tool
It’s not really tested (as stated in the README)
It doesn’t handle a recursive “just get my ENCRYPT folder”.
Hi @shaiguitar,
There isn’t a roadmap currently, but I expect to see some form of support for this in the next generation product, although not on initial release.
I created some utilities, including a odrive decryption utility that has recursive capabilities. It’s not “official”, but I support it. https://github.com/amagliul/odrive-utilities
I’ve been pretty happy with odrive (really, a great concept & product!) but am at the point where I will likely cancel my subscription because encryption is not supported on linux. If it’s supported on Mac (posix-like) how hard can it be to port it to linux? I’m a little confused why it’s problematic, and since one of the main reasons for doing pro for me was encryption, it renders that membership meaningless if it’s not portable aross my devices. Just something to think about.
Hi all, one remark on the code for Linux. In “elementary OS” (which is an Ubuntu fork I believe) I had to remove the " " for the find command. And I had to add the “-exec python”.
Working example below. Hope it makes sense.
exec 6>&1;num_procs=4;output="go"; while [ "$output" ]; do output=$(find $HOME/odrive-agent-mount/'Amazon Cloud Drive'/ -name *.cloud* -print0 | xargs -0 -n 1 -P $num_procs -exec python "$HOME/.odrive-agent/bin/odrive.py" sync | tee /dev/fd/6);done