Skip to content

Instantly share code, notes, and snippets.

@nna774 nna774/backupdir.sh
Created Apr 21, 2015

Embed
What would you like to do?
#! /bin/sh -e
BACKUP_DIR="$HOME/backup"
BACKUP_DEST="$HOME/current"
DIR=$BACKUP_DIR/`date +"%Y-%m-%d"`
rm -f $BACKUP_DEST
mkdir -p $DIR
ln -s $DIR $BACKUP_DEST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.