Created
September 3, 2014 21:36
-
-
Save tugrulyatagan/8c8ff9e0e9130e4d9146 to your computer and use it in GitHub Desktop.
lab dosyalarını yedekleyen betik
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 | |
DAY=`/bin/date +%Y%m%d_%H%M` | |
mysqldump -ubackuper -pbackupdb gate > /root/backups/mysql-backups/gate-$DAY.sql | |
cp -f /root/backups/mysql-backups/gate-$DAY.sql /YEDEK-R/backups/mysql-backups/ | |
cp -f /root/backups/mysql-backups/gate-$DAY.sql /YEDEK-H/backups/mysql-backups/ | |
cp -Rf /var/www /root/backups/web-backups/www-$DAY | |
cp -Rf /var/www /YEDEK-R/backups/web-backups/www-$DAY | |
cp -Rf /var/www /YEDEK-H/backups/web-backups/www-$DAY | |
cp -Rf /var/socket/ /root/backups/socket-backups/socket-$DAY | |
cp -Rf /var/socket/ /YEDEK-R/backups/socket-backups/socket-$DAY | |
cp -Rf /var/socket/ /YEDEK-H/backups/socket-backups/socket-$DAY | |
cp -Rf /var/email/ /root/backups/email-backups/email-$DAY | |
cp -Rf /var/email/ /YEDEK-R/backups/email-backups/email-$DAY | |
cp -Rf /var/email/ /YEDEK-H/backups/email-backups/email-$DAY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment