Zu Hauptinhalten wechseln

FV Decipher Unterstützung

Alle Themen, Ressourcen für FV Decipher benötigt.

 
decipher

Uploading Files via the Command Line

  Requires Decipher Cloud

Uploading files to the server can overwrite existing files. Please be careful and only upload files if you know exactly what you are doing. Please contact your manager if assistance is needed.

1:  Overview

The Research Hub has tools that will allow you to upload files necessary to your project. For example, quotas, images, videos, and sample files can all be uploaded using the "Upload System Files" option.

Learn more: Uploading System Files

In some cases, you may need to upload files to areas of the server that are outside of your project's directory. This article details a couple common ways to upload files anywhere to the cloud server.

Please skip to section 3.2 if you do not wish to use the command line to upload or download files.

2:  Upload via scp

(Mac/Linux only) If you have shell access to the server and a terminal application, then you can use the scp (secure copy) command.

To upload a file from your local machine to the server, run the following command:

scp file.txt user@domain.com:/home/user/v2/selfserve/9d3/

You will need to find out the appropriate directory to upload the file to (e.g. /home/user/v2/selfserve/9d3/ ).

To download a file from the server to your local machine, use the following command:

scp user@domain.com:/home/user/v2/selfserve/file.txt .

This will download the file.txt file to your current working directory.

You can upload/download many files at a time by separating them with a space or using the asterisk * character.
(e.g. scp file.txt file2.txt *.jpg *.png user@domain.com:/home/user/v2/selfserve/9d3/ )

Learn more: Secure copy (WikiPedia)

3:  Upload via FTP

ftp (File Transfer Protocol) is a method for uploading (putting) or downloading (getting) files to and from a server. It can be used via the command line or using graphical user interface tools like FileZilla or PSFTP (Windows only).

3.1:  Using SFTP

Even though ftp is an accessible option to upload files, SFTP (Secure File Transfer Protocol) is a better method as it uses a secure connection similar to SSH.

To upload a file from your local machine to the server, we will take the following steps:

  1. Navigate to the directory containing the files you wish to upload (local machine)
  2. Establish a connection to the server using sftp
  3. Navigate to the directory where you wish up upload the files (server machine)
  4. Use the put command to upload the necessary files

The following terminal session is a snapshot of the steps above:

user@user:~$ cd Desktop
user@user:~/Desktop$ sftp user@domain.com
Connected to domain.com.
sftp> ls
sftp> put file.txt
Uploading file.txt to /home/user/file.txt
file.txt                                      100%    0     0.0KB/s   00:00
sftp> ls
file.txt
sftp> exit

To download a file from your server to your local machine, we will take the following steps:

  1. Navigate to the directory you wish to download the file to (local machine)
  2. Establish a connection to the server using sftp
  3. Navigate to the directory containing the file you wish to download (server machine)
  4. Use the get command to download the necessary files

The following terminal session is a snapshot of the steps above:

user@user:~$ cd Desktop
user@user:~/Desktop$ sftp user@domain.com
Connected to domain.com.
sftp> get file.txt
Fetching /home/user/file.txt to file.txt
sftp> exit
user@user:~/Desktop$

3.2:  Using FileZilla

FileZilla is a free FTP application available for Windows, Mac and Linux that you may download here. There are many alternative applications that enable you to connect to a server and download/upload files. PSFTP is also free, commonly used and available for Windows systems only.

Using FileZilla is simple and once installed, follow these steps to download or upload files to your server:

  1. Open the FileZilla client
    filezilla_1.png
  2. Add in the Host, Username and Password information
    (e.g. domain.com, username, password1234 )
    filezilla_2.png
  3. Navigate to the directory on your local machine (left side) containing the file you wish to upload
  4. Navigate to the directory on the server (right side) you wish to upload the file too
  5. If you wish to upload a file, double click the file (left side) to upload it to the server
  6. If you wish to download a file, double click it (right side) to download it to your local machine

You can add a server permanently to FileZilla by going to the Site Manager (located under File >> Site Manager) and filling in the appropriate server information along with your credentials. Ensure that you are using SFTP and not Plain FTP.

filezilla_3.png

  • War dieser Artikel hilfreich?