Linux Setup and Automation

heyas, guys!

okay, i have the systemd odrive.service stuff set up, and it is running automatically on startup.

then i use the mount command to link my local /WORK directory with my remote /Work Remote directory.

and lastly, i used the sync - - recursive command to start downloading the files. allllll the files. :X (i was brave!)

then i restarted. the odrive service status is normal. the odrive status reports:


syncEnabled: True version: prod 1045
placeholderThreshold: neverDownload autoUnsyncThreshold: never
downloadThrottlingThreshold: unlimited uploadThrottlingThreshold: normal
autoTrashThreshold: never Mounts: 2
xlThreshold: never Backups: 0

Sync Requests: 0
Background Requests: 0
Uploads: 0
Downloads: 0
Trash: 0
Waiting: 0
Not Allowed: 0

which tells me sync is on (true), but it is not synching.
when i try to run the sync command again, it tells me
Unable to sync 3D. Either this file is not inside a valid odrive folder, or odrive is not initialized correctly (not logged in?)

“3D” is a directory under “WORK”, and it has started to be populated by my prior sync command. so i don’t know why it is complaining now? because 3D is now a real directory and not a cloudf file?
isActivated and hasSession are both reported as true, and my account id info is correct.

so where am i going wrong?

linux mint cinnamon starts
odrive.service starts
syncEnabled is true

i see that placeholderThreshold is set to neverDownload. do i want it set to alwaysDownload? i didn’t see how to set that in the config files (i do have premium, btw).

if i just need to be logged in… how do i log in?

and i set my config to allow the local and remote folder names to be mismatched. (since local is WORK and remote is Work Remote).

oh, and… the status report says i have 2 mounts. can i get odrive to tell me what it thinks they are? (i did set up 2.)

thanks, guys!

Hi @BLR ,

Can you post the verbatim command you are running and the returned message?

Maybe the command or provided path just needs to be tweaked?

What do you see in the sync activity log? ($HOME/.odrive-agent/log/main.log)

heyas;

AHA! i have Figured It Out!

for some reason, my partition was mounting under /media instead of /mnt.

if have fixed my fstab file, i have removed the odrive mount that was pointing to /media and changed it to the /mnt point AND everything is now set up correctly.

now i am wondering…

is there a way to tell odrive to always sync on startup, and to do that in the background? i have a big WORK folder, and i would like to get it to this new machine. in pieces (backblaze, of course, starts throttling it).

do i have to run the sync command manually all the time?

or…. yeah, basically, how do i get it to act like the windows version? with always download on. ;D

Hi @BLR ,

If you want new files to always download, you will need to set a sync rule on the folder you want to always download.

odrive foldersyncrule "/my_local_mount_folder/folder_to_sync" inf --expandsubfolders

You could then trigger a recursive sync to make sure everything currently in the folder is downloaded:

odrive sync "/my_local_mount_folder/folder_to_sync" --recursivesync