Skip to content

Instantly share code, notes, and snippets.

@xsteadfastx
Last active March 9, 2018 09:06
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 xsteadfastx/065364a946ce544ab6a2d004d54acc9d to your computer and use it in GitHub Desktop.
Save xsteadfastx/065364a946ce544ab6a2d004d54acc9d to your computer and use it in GitHub Desktop.
Project Gutenberg Sync
.PHONY: sync zip txt
sync: # sync everything
rsync -av --del --partial --append-verify aleph.gutenberg.org::gutenberg gutenberg
zip: # sync only zip files
rsync -avm --del --partial --append-verify \
--include="*/" \
--include="*.zip" \
--exclude="*" \
aleph.gutenberg.org::gutenberg gutenberg
txt: # only sync txt files
rsync -avm --del --partial --append-verify \
--include="*/" \
--include="*.txt" \
--exclude="*" \
aleph.gutenberg.org::gutenberg gutenberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment