Posted 2010-08-23 13:46 by Joe

transfer-file.pl

transfer-file.pl

Transfer a file between two systems

This command copies a file between two systems managed by Cloudmin, using a direct copy with scp where possible. The source system is specified with the --source flag, and the target with --dest. The file or directory to copy is set with --file. By default it will be copied to the same path on the target, unless the --destfile parameter followed by a new filename is given.

To double-check that the file was transferred correctly, use the --checksum flag. This will trigger an md5 checksum on the source and destination files.

If the file being copied is actually a device (such as a partition or LVM logical volume), use the --device flag to have Cloudmin transfer it in the correct way.

Example usage

  cloudmin transfer-file --source xencentos.home --dest xensendmail.home --file /etc/hosts --destfile /tmp/hosts
  Copying /etc/hosts on xencentos.home to /tmp/hosts on xensendmail.home ..
  .. done

Command Line Help

cloudmin transfer-file --source hostname
                       --dest hostname
                       --file path
                      [--destfile path]
                      [--device-file]
                      [--checksum [--checksum-size bytes]]