test
[hcoop/zz_old/ikiwiki] / FileTransfer.mdwn
CommitLineData
ee25310d 1The recommended way (and possibly only reasonable way at the moment) to upload content from your computer to our servers (or the other way around if you want to make backups) is to use ''scp''. It is a secure and easy way to copy single files or whole directory trees.\r
2\r
3If all you want is to keep a directory at hcoop in sync with your local changes, you should consider using ''rsync''. It can significantly reduce bandwidth usage by only transmitting the differences between the two trees. Since version 2.6 ''rsync'' uses ''scp'' for file transfer by default. For older versions you have to use the ''-e'' (''--rsh'') option. For example:\r
4\r
5{{{\r
6rsync -avz -e ssh ~/html/hcoop/* username@hcoop.net:public_html\r
7}}}\r
8You can also use plain ''scp'', but it overwrites destination files and is usually only applicable when you are uploading new files to hcoop:\r
9\r
10{{{\r
11scp -r ~/html/hcoop/* username@hcoop.net:public_html\r
12}}}\r
13You can run command-line sftp (Secure FTP) tool:\r
14\r
15{{{\r
16sftp hcoop.net\r
17Connecting to hcoop.net...\r
18Password:\r
19sftp> help\r
20}}}\r
21With GUI FTP clients, SFTP connection is possible if the clients support "Secure FTP" or similar as the connection method. In Unix/Gnome, you could use for example ''gftp''; for Microsoft Windows, example clients are the free [http://WinSCP.sourceforge.net WinSCP], or proprietary FTP Voyager.\r
22\r
23We also started supporting the usual FTP protocol, but you need to request the ability to use it (see [https://members.hcoop.net Member Portal]), and we only allow "SSL Auth" method (see FtpConfiguration). Here's an example:\r
24\r
25{{{\r
26ftp hcoop.net\r
27Connected to hcoop.net.\r
28220 fyodor.hcoop.net FTP server ready.\r
29Name (hcoop.net:user):\r
30234 AUTH SSL OK.\r
31[SSL Cipher AES256-SHA]\r
32331 Password required for user.\r
33Password:\r
34User logged in.\r
35Remote system type is UNIX.\r
36Using binary mode to transfer files.\r
37ftp> help\r
38}}}\r