Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added compression

...

No Format
user@ecgb11:~> rsync -avavz $SCRATCH/mydataset hpc-login:/scratch/user/

...

No Format
user@aa6-100:~> rsync -avavz ecgate:/scratch/group/user/mydataset $SCRATCH/

...

Warning

You can use the $HOME environment variable to refer to your files in the rsync command provided this is protected by single quotes to ensure the variable is expanded on the remote host.

For example,  to copy a directory from $HOME on ecgate to $HOME on Atos HPCF, initiating the transfer from ecgate, use:

No Format
rsync -avavz $HOME/mydataset 'hpc-login:$HOME/'


However, the $SCRATCH or $PERM environment variables can only be used to refer to your files on the local host from where you initiate the rsync command as these are not set for use by the rsync command on the remote host.

An alternative option is to use the $HOME variable with pattern substitution.  For example, to copy a directory tree from $SCRATCH on ecgate to $SCRATCH on Atos HPCF running the command on ecgate use:

No Format
user@ecgb11:~> rsync -avavz $SCRATCH/mydataset 'hpc-login:${HOME/home/scratch}/'

or from $PERM on ecgate to $PERM on Atos HPCF running the command on the latter use:

No Format
user@aa6-100:~> rsync -avavz 'ecgate:${HOME/home/perm}/mydataset' $PERM/

The single quotes are needed here to ensure the $HOME variable takes its value on the remote rather than the local host.

...

Show If
groupecmwf

Transferring files from local Reading-based workstation disks /var/tmp or /hugetmp

Direct transfers from your workstation to the spaces in Bologna are discouraged, since they would not use the dedicated network link between the two data centres and transfer rates will be poor. Instead, you may force the transfers to jump through ecgate for best results. For example, to transfer a directory and its contents under your local disk onto the PERM space in Bologna:

No Format
user@leap42-workstation:~> rsync -avavz -e "ssh -x -o ProxyCommand='ssh -q -x -W %h:%p ecgate'" /var/tmp/user/mydataset hpc-login:/perm/user/mydataset

Transferring files from Reading-based workstation filesystems $HOME and $PERM

These fileystems are also available in ecgate and lxc, so we would recommend users to run the transfers from either of those systems and not directly from the workstation. See the example above.

...