Migrate files and directories between two remote servers with rsync and progress bar

To push an archive file from local to remote server with progress bar use:


rsync --rsh -av -e 'ssh -p #####' --progress --partial file.tgz [email protected]:/backup

To push the content of the directory from local to remote server recursively with progress bar use:


rsync -avz -e 'ssh -p #####' --progress --partial localdirectory/ [email protected]:/backup/

Tags:

Add new comment

Filtered HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.