Transferring files to/from iceberg from Linux Workstations
On any linux platform any one of the following utilities can be used to transfer files between iceberg and any Unix/Linux workstation:
User me1xyz wishes to transfer files between his/her /data area and his/her Linux workstation using sftp.
On his workstation he types -
sftp firstname.lastname@example.org ( user will be asked to supply the iceberg password next )
sftp> cd /data/me1xyz ( change directory if necessary. By default connected to /home/me1xyz )
sftp> put mytable.inp ( transfer file mytable.inp onto iceberg )
sftp> get results.txt ( transfer results.txt from iceberg )
sftp> mget *.res ( using wild-cards to get or put multiple files )
sftp> mput *.dat
sftp> quit ( exit the sftp program )
To transfer an entire directory 'mylocaldir' and its contents from his workstation to iceberg -
on his workstation he types -
scp -r mylocaldirectory email@example.com:.
To copy the same directory under a different directory '/data/me1xyz/myprogs' on iceberg, he types-
scp -r mylocaldirectory firstname.lastname@example.org:/data/me1xyz/myprogs
This command has many parameters that can allow very sophisticated ways of transferring files to remote hosts.
For example, the following command will keep a copy of a local directory named Pictures on iceberg itself by transferring only the files under Pictures directory that may have been changed on your local workstation onto iceberg.
rsync -vuar Pictures email@example.com:
The first time you use this command, it will create the directory Pictures on iceberg and copy everything into it.
The subsequent uses of the same command will only copy the files that were altered/added since the last time.