Skip to content

Instantly share code, notes, and snippets.

@dtgay
Created September 27, 2012 21:18
Show Gist options
  • Save dtgay/3796527 to your computer and use it in GitHub Desktop.
Save dtgay/3796527 to your computer and use it in GitHub Desktop.
The Littlest Backup
#!/bin/sh
# Backup file and directory to local folder
cp -r ~/.task ~/Dropbox/Backup/tasks/
cp ~/.taskrc ~/Dropbox/Backup/tasks/.taskrc
# Backup file and directory to remote location
rsync -r ~/.task yacht:.task
rsync ~/.taskrc yacht:.taskrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment