$ mkdir <repo-name>.git
$ cd <repo-name>.git
$ git init --bare
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Dumps MySQL database to a file, uploads to S3 and rotates out old backups. | |
# Set correct dates | |
NOWDATE=`date +%Y-%m-%d` | |
LASTDATE=$(date +%Y-%m-%d --date='1 week ago') | |
DESTINATION=/var/backup | |
DB= |
NewerOlder