test
[hcoop/zz_old/ikiwiki] / FileTransfer.mdwn
1 The 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.
2
3 If 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:
4
5 {{{
6 rsync -avz -e ssh ~/html/hcoop/* username@hcoop.net:public_html
7 }}}
8 You can also use plain ''scp'', but it overwrites destination files and is usually only applicable when you are uploading new files to hcoop:
9
10 {{{
11 scp -r ~/html/hcoop/* username@hcoop.net:public_html
12 }}}
13 You can run command-line sftp (Secure FTP) tool:
14
15 {{{
16 sftp hcoop.net
17 Connecting to hcoop.net...
18 Password:
19 sftp> help
20 }}}
21 With 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.
22
23 We 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:
24
25 {{{
26 ftp hcoop.net
27 Connected to hcoop.net.
28 220 fyodor.hcoop.net FTP server ready.
29 Name (hcoop.net:user):
30 234 AUTH SSL OK.
31 [SSL Cipher AES256-SHA]
32 331 Password required for user.
33 Password:
34 User logged in.
35 Remote system type is UNIX.
36 Using binary mode to transfer files.
37 ftp> help
38 }}}