Gandi Wiki


Questions

How to upload files to your server

Localize the files' emplacement

Start by going to the folder containing the files to upload.

Supposing the file is in the "pages" sub-folder of the "website" sub-folder:

cd /website/pages\\

SFTP

You need to connect to your server using SFTP to upload your files:

sftp root@(your server IP)\\

Enter your password to open a connexion to your server.

The "put" command

Use the "put" command to load files to your server, specifying the directory in which the files must go:

put example.html /var/www

The file called "example.html" will have been loaded to the /var/www directory on your server.

Note:

You cannot upload a folder directly, but you can upload it's entire content: when inside the folder containing the files to be uploaded, log on to your server in sftp and use the following command to load all files to the folder:
put *.* /var/www

Questions

No question on this page and its children.

RSS feed for questions matching this filter (Help)

Last modified: 05 Mar 2008 at 14:39 by Elliott F. (Gandi)