Egnyte Help Desk

Command Line FTP

FTP access is limited to Admins and Power Users on the Office, Business, or Enterprise plans; trial users on these plans are limited to uploading 1 GB at a time via FTP.

LINUX / POSIX

cURL can be easily used to transfer files using FTP protocol and with SSL.

A prototype:


curl -k -T <file> --ftp-ssl --ftp-pasv -u "<egnyte-user>\mce_markerlt;egnyte-domain>:<egnyte-password>" ftp://ftp-<egnyte-domain>.egnyte.com/

For example if you have to transfer a local file called testfile.txt and you want to upload to the root of your FTP directory:

curl -k -T testfile.txt --ftp-ssl --ftp-pasv -u "username\$domain:password" ftp://ftp-domain.egnyte.com/

Creating a directory:

curl -k -Q "MKD /Shared/testdirectory" --ftp-ssl --ftp-pasv -u "username\$domain:password" ftp://ftp-domain.egnyte.com/

Uploading file to the created directory:

curl -k -T testfile.txt --ftp-ssl --ftp-pasv -u "username\$domain:password" ftp://ftp-domain.egnyte.com/Shared/testdirectory/

You can FTP files into a folder under Shared using a script:

Here is a simple curl :

curl --user <username>@<domain_name>:<password> -T <File Path> ftp://ftp-<domain_name>.egnyte.com/Shared/mybackup/somefile.txt 

/Shared/mybackup should be valid directory that already exists.

To Download

For Download -
curl -k --ftp-ssl --ftp-pasv -u "<username>\$<domainName without egnyte.com>:<password>" ftp://<ftp url>/Shared/Documents/<filename>



Please replace "username" with the actual Egnyte username. 

Please replace "domain" with the actual Egnyte domain.

Please replace "password" with the actual Egnyte password.

You can carefully script each basic operation needed. For a simple operation of backing up log files for example, you can run a script once each day thats creates a directory representing that day(date-time) and upload log files to that directory on FTP and over SSL.

You can avoid including the plain text password in the curl command, for example:

curl -k -T testfile.txt --ftp-ssl --ftp-pasv -u "username\$domain" ftp://ftp-domain.egnyte.com/Shared/testdirectory/

Will then prompt you for a password before starting transfer. 

Egnyte Community

Egnyte Community

Want to connect with other Egnyte users and our Egnyte team? Share ideas and ask questions in our Community.

Help Improve Egnyte

Every day we work hard to make Egnyte better with feedback from users to improve our products. Sign up to participate in Egnyte User Studies.