Skip to content

Instantly share code, notes, and snippets.

@datacodesolutions
Created July 26, 2013 14:41
Show Gist options
  • Save datacodesolutions/6089384 to your computer and use it in GitHub Desktop.
Save datacodesolutions/6089384 to your computer and use it in GitHub Desktop.
Create tar.gz file of all changed files in a given time frame.
#! /bin/sh
tar cvpzf ./test_backup.tar.gz --newer-mtime='-3 days' --exclude='.git' ./Sites/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment