Skip to content

Instantly share code, notes, and snippets.

@mikevalstar
Created August 24, 2012 23:21
Show Gist options
  • Select an option

  • Save mikevalstar/3457088 to your computer and use it in GitHub Desktop.

Select an option

Save mikevalstar/3457088 to your computer and use it in GitHub Desktop.
#!/bin/bash
TIME=`date +"%d-%m-%Y"`
FILENAME="backup-$TIME.tgz"
SRCDIR="/var/tekkit"
DESDIR="/var/tekkit_backup"
tar -cpzf $SRCDIR/$FILENAME $DESDIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment