mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 14:10:28 +01:00
11 lines
278 B
Smarty
11 lines
278 B
Smarty
#!/bin/sh
|
|
mysqldump dbname -h127.0.0.1 -u<username> -p<password> | gzip > /tmp/mysql_complete_daily.gz
|
|
|
|
|
|
ftp -inv <ipftpserver> << EOF
|
|
user <userftp> <passwordftp>
|
|
put /tmp/mysql_complete_daily.gz mysql_complete_`date +%y%m%d_0000`.gz
|
|
bye
|
|
EOF
|
|
rm -f /tmp/mysql_complete_daily.gz
|