Odrish a group of easy to use Bash scripts for Odrive client. The aim is to have the program running from the command line, fast and easy to use. There are many other repositories out there that give more functions, or more straight forward implementation. However, this are the ones I use as base.
With this scripts you will be able to execute the next processes:
Administrative processes:
- sart the agent
- shutdown the agent
- view your status
- empty trash
Update
- sync data (also recursively)
- refresh files (also recursively)
Surf trough the files
- rm and sync files
- cd through files whith syncs
- mv files
Target files for recurrent sync/refresh
- curl :
sudo apt-get install curl
in case it isn't installed - DIR : An existing mounting directory, example: ~/Shared/odrive
- Python3 : Installed
git clone https://github.com/Bloodfield/Odrish.git
Go to the repository folder, the run:
./Install.sh I [ P | B ]
If you want to use the python client, use P
If you want to use the bash client, use B
You might need to add executable permission first
chmod +x Install.sh
The mounting directory is optional, in case you want to mount it later
Run:
${ODRPATH}/odr [ARGS]
You can also create an alias on your ./bashrc file replacing ODRPATH
whith the path of the odr file
alias odr='${ODRPATH}/odrive'
Go to the repository folder, the run:
./Install.sh U [ | A]
If you want to install odrive as well, use the option A
Gives help menu Does not use arguments
odr help
Initializes the client Does not use arguments
$ odr init
Closes the client Does not use arguments
odr shutdown
Makes represh in the file or folder -r Recursive refreshinf in case of folders File, folder or placeholder
$ odr refresh [r | s] [file | folder | placeholder]
sync placeholder -r Recursive sync in case of a folder placeholder or folder
odr sync [r] [placeholder | folder ]
Shows the general status
odr status [args]
args: -h, --help show this help message and exit --mounts get status on mounts --backups get status on backup jobs --sync_requests get status on sync requests --uploads get status on uploads --downloads get status on downloads --background get status on background requests --trash get status of trash items --waiting get status of waiting items --not_allowed get status of not allowed items
syncs a folder an the folders that first folders it contains folder
odr cd [folder]
deletes a file or folder, both locally and in the cloud file or folder
odr rm [file | folder]
moves a file or folder, both locally and in the cloud file or folder
odr mv [source : file | folder | handler ] [target folder]
creates a list of directories to be recursively synced/refreshed This is usefull if you have recurrent directories to be synced/refreshed
odr target [ add | rm | ls | sync | refresh ] [args]
add = takes a directory path and add it to the list rm = removes a directory path from the list ls = takes no arguments, lists all targeted directories sync = takes no arguments, syncs everything in the list refresh = takes no arguments, reresh everything in the list
- Odrive-cli documentation.
- General documentation
- Sync CLIent Magic Blog post
The odrive-agent is installed in ~/.odrive-agent/ The Odrish interface is installed in ~/.Odrish/ and ~/.local/bin/odr