Skip to content

Instantly share code, notes, and snippets.

@vnegrisolo
Last active September 3, 2016 14:56
Show Gist options
  • Save vnegrisolo/5e762a00d0f7a761b1c3387268f20634 to your computer and use it in GitHub Desktop.
Save vnegrisolo/5e762a00d0f7a761b1c3387268f20634 to your computer and use it in GitHub Desktop.
Simple backup script
# remove unwanted files:
find . -type f -name 'index.html' -print0 | xargs -0 echo
for f in * ; do echo "f='${f}'"; tar -czf ${f}.tar.gz ${f}; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment