Skip to content

Instantly share code, notes, and snippets.

@checktravis
Last active February 14, 2018 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save checktravis/7276ca646269c91d693b3c753808aaa5 to your computer and use it in GitHub Desktop.
Save checktravis/7276ca646269c91d693b3c753808aaa5 to your computer and use it in GitHub Desktop.
Simple script to copy (rsync) directories. Resumable, verbose. ex: $ ./rsyncGo.sh "/source/*" "/dest/" # contents under source/ will be copied in dest/
#! /bin/bash
echo "starting syncing $1 to $2"
rsync -r -vh --append-verify --no-compress --info=progress2 --out-format='[%t] [%i] (Last Modified: %M) (bytes: %-10l) %-100n' $1 $2
echo "completed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment