-
Notifications
You must be signed in to change notification settings - Fork 427
Home
Welcome to the drive wiki!
-
An installation of Go with version >= 1.3
To check your go version:
$> go version
-
Your gopath should have been set in your e.g
Sample set up:
vi ~/.bashrc or vi ~/.bash_profile
export GOPATH=~/gopath
export PATH=$GOPATH:$GOPATH/bin:${PATH}
$> go get -u github.com/odeke-em/drive/drive-gen && drive-gen
To manage the number of concurrent pulls/pushes in your env make sure to set variable DRIVE_GOMAXPROCS
e.g:
$ cat << ! >> ~/.bashrc
> export DRIVE_GOMAXPROCS=8
> !
$ source ~/.bashrc
If the spinner under Resolving...
displays diamonds with question marks in them, your linux terminal is not displaying UTF-8 characters. Fix by defining LANG
either in each user session or system-wide. It can be defined system-wide in /etc/environment
or /etc/locale.conf
. For example, in the United States, here is what /etc/environment
would look like after editing it:
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
LANG=en_US.UTF-8
It may be easier to put it in /etc/locale.conf
using localectl
as follows:
sudo localectl set-locale LANG=en_US.UTF-8
The system-wide locale can be overridden in each user session by creating or editing ~/.config/locale.conf
.
After a reboot, your linux terminals should display all the characters instead of putting diamonds with question marks on the screen. If not, it could be that the locale was not generated. To generate a locale, first uncomment the corresponding line in /etc/locale.gen
, save it, and sudo locale-gen
. Another reboot should have it working properly.
find your $GOPATH installation
$ cd $GOPATH
$GOPATH/bin/drive push your_mountpoint
$GOPATH/bin/drive pull your_mountpoint
OR
/path_GOPATH/bin/drive push -quiet /mnt/drive/ # it work with pull
/path_GOPATH/bin/drive emptytrash -quiet /mnt/drive/
EXAMPLE $GOPATH in folder /var/go/
/var/go/bin/drive push -quiet /your_mountpoint/
/var/go/bin/drive emptytrash -quiet /your_mountpoint/