Skip to content

Instantly share code, notes, and snippets.

View hanifeoglu's full-sized avatar
🎯
Focusing

Salih Hanifeoglu hanifeoglu

🎯
Focusing
View GitHub Profile
@mikebronner
mikebronner / after.sh
Created December 7, 2017 21:55
Homestead Database Backups via cron
#!/bin/sh
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
sudo rm /etc/cron.daily/database-backup
sudo bash -c "cat > /etc/cron.daily/database-backup" <<EOL
#!/bin/bash
@ronanguilloux
ronanguilloux / script-bash-redmine-backups
Last active September 17, 2021 06:32 — forked from gabrielkfr/script-bash-redmine-backups
Backup script (daily & monthly) for Redmine (full instance + db sql snapshot)
#! /bin/bash
#
# backup_redmine.sh
# modified by ronan@lespolypodes.com
# Inspiration: https://gist.github.com/gabrielkfr/6432185
#
# Distributed under terms of the MIT license.
# -- VARS
DAY=`date +"%Y%m%d"`