Skip to content

Odrish a group of easy to use Bash scripts for Odrive client.

License

Notifications You must be signed in to change notification settings

axologger/Odrish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Odrish

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

Requirements

  • curl : sudo apt-get install curl in case it isn't installed
  • DIR : An existing mounting directory, example: ~/Shared/odrive
  • Python3 : Installed

Installation

Download

git clone https://github.com/Bloodfield/Odrish.git

Install

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

You can use odr STANDALONE as well

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'

Uninstall

Go to the repository folder, the run:

./Install.sh U [ | A]

If you want to install odrive as well, use the option A

Commands

help

Gives help menu Does not use arguments

odr help

init

Initializes the client Does not use arguments

$ odr init

shutdown

Closes the client Does not use arguments

odr shutdown

refresh

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

sync placeholder -r Recursive sync in case of a folder placeholder or folder

odr sync [r] [placeholder | folder ]

status

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

cd

syncs a folder an the folders that first folders it contains folder

odr cd [folder]

rm

deletes a file or folder, both locally and in the cloud file or folder

odr rm [file | folder]

mv

moves a file or folder, both locally and in the cloud file or folder

odr mv  [source : file | folder | handler ] [target folder]

target

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

References

Backnotes

The odrive-agent is installed in ~/.odrive-agent/ The Odrish interface is installed in ~/.Odrish/ and ~/.local/bin/odr

TODO

About

Odrish a group of easy to use Bash scripts for Odrive client.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages