Skip to content

Instantly share code, notes, and snippets.

@rohannog
Created September 10, 2011 20:38
Show Gist options
  • Save rohannog/1208746 to your computer and use it in GitHub Desktop.
Save rohannog/1208746 to your computer and use it in GitHub Desktop.
Backup list of files to a backup directory
for i in `cat <dir-and-file-list>`; do rsync -av $i <dest-dir>; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment