How to use ElephantDrive on Linux?

See How do I install ElephantDrive Linux? to learn how to install ElephantDrive on Linux. After installing ElephantDrive you will be guided through the initial setup wizard to connect your ElephantDrive account to your device. All the backup management is done through the ElephantDrive website, which means that ElephantDrive on Linux is only a client which backs up files and does not offer administrative tools.

This article will instruct you on the following actions:

  1. Log in/out of ElephantDrive
  2. Start/Stop/Restart ElephantDrive
  3. Upload files to the cloud through command line
  4. Download files from the cloud through command line

1. Log in/out of ElephantDrive

ElephantDrive creates a file on your device named elephantdrive.config. This file is usually located at /etc/elephantdrive.config.

The configuration file accepts many configuration parameters used by the application to connect your account to ElephantDrive. In order to connect an account to ElephantDrive, simply modify/add the following lines in the elephantdrive.config file and restart ElephantDrive:

Username example@elephantdrive.com
Password YourPassword

Note that after restarting ElephantDrive the application will connect to the service and log into your account using your login credentials provided in the configuration file. After logging into your account the password in plain text is replaced by a hashed password for security.

2. Start/Stop/Restart ElephantDrive

ElephantDrive runs as a service on Linux, which can be started, stopped, and restarted. The following commands can be used to perform those actions:

$ sudo service elephantdrive start 
$ sudo service elephantdrive stop
$ sudo service elephantdrive restart

3. Upload files to the cloud through command line

Unlike Mac OS and Windows clients, the ElephantDrive client for Linux does not offer support to upload files directly to the website through browsers. However, it's possible to upload files to the cloud through the command line, which can be done using the following command:

$ /sbin/elephantdrive -u /tmp/example_file.txt -c /etc

This command uses the ElephantDrive binary located in /sbin/elephantdrive to upload (-u) the file /tmp/example_file.txt to the cloud using the credentials available in the configuration file (-c) located in /etc. The uploaded file will be available in the cloud in the path /My Computers/<Device_Name>/tmp/example_file.txt.

4. Download files from the cloud through command line

Unlike Mac OS and Windows clients, the ElephantDrive client for Linux does not offer support to download files directly from the website through browsers. However, it is possible to download files from the cloud through command line, which can be done by using the following command:

$ /sbin/elephantdrive -d /My Computers/Linux/home/user/example_file.txt -o /home/user/Downloads -c /etc

This command uses the ElephantDrive binary located in/sbin/elephantdrive to download (-d) the file /My Computers/Linux/home/user/example_file.txt from the cloud to the local path (-o/home/user/Downloads using the credentials available in the configuration file (-c) located in /etc.

Note: The path included after the parameter -d should be the exact path of the file located in the cloud.

 

Have more questions? Submit a request

Comments

Powered by Zendesk