Код: Выделить всё
FreeBSD web 6.1-RELEASE FreeBSD 6.1-RELEASE #7: Tue Aug 29 11:45:16 MSD 2006 omg@web:/usr/src/sys/i386/compile/WEB i386
Код: Выделить всё
#!/bin/sh
prefix=/web1/backup/mysql/dump_
suffix=$(date +%Y-%m-%d%.%H:%M:%S)
/usr/local/bin/mysqldump -uwebadmin -pdt,flvby bx_sitemanager --routines | gzip > $prefix$suffix.gzip
/usr/local/bin/ncftpput -f /web1/backup/script/gammaftp.cfg -t 30 backup/mysql $prefix$suffix.gzip
find /web1/backup/mysql/* -mtime +5 -type f -exec rm {} \;
Код: Выделить всё
host 192.168.1.25
user web
pass 123456
Код: Выделить всё
host# /web1/backup/script/mysql_dump.sh
...ump_2009-08-20.16:42:45.gzip: ETA: 0:02 0.03/ 27.15 MB 16.53 MB/s Lost data connection to remote host: Broken pipe.
/web1/backup/mysql/dump_2009-08-20.16:42:45.gzip: 27.15 MB 11.38 MB/s
ncftpput /web1/backup/mysql/dump_2009-08-20.16:42:45.gzip: socket write error.
Код: Выделить всё
(000503) 20.08.2009 13:18:55 - (not logged in) (192.168.6.10)> Connected, sending welcome message...
(000503) 20.08.2009 13:18:55 - (not logged in) (192.168.6.10)> 220-FileZilla Server version 0.9.10 beta
(000503) 20.08.2009 13:18:55 - (not logged in) (192.168.6.10)> 220-written by Tim Kosse (Tim.Kosse@gmx.de)
(000503) 20.08.2009 13:18:55 - (not logged in) (192.168.6.10)> 220 Please visit http://sourceforge.net/projects/filezilla/
(000503) 20.08.2009 13:18:55 - (not logged in) (192.168.6.10)> USER web
(000503) 20.08.2009 13:18:55 - (not logged in) (192.168.6.10)> 331 Password required for web
(000503) 20.08.2009 13:18:55 - (not logged in) (192.168.6.10)> PASS ********
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 230 Logged on
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> PWD
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 257 "/" is current directory.
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> FEAT
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 211-Features:
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> MDTM
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> REST STREAM
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> SIZE
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> MLST type*;size*;modify*;
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 211 End
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> HELP SITE
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 502 Command SITE is not recognized or supported by FileZilla Server
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> CLNT NcFTPPut 3.2.2 freebsd6.1-i386
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 500 Syntax error, command unrecognized.
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> CWD backup/mysql
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 250 CWD successful. "/backup/mysql" is current directory.
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> TYPE I
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 200 Type set to I
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> OPTS MLST type;size;modify;
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 501 Option not understood
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> MLST dump_2009-08-20.13:18:21.gzip
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 550 File or directory not found.
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> SIZE dump_2009-08-20.13:18:21.gzip
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 550 File not found
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> PASV
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 227 Entering Passive Mode (192,168,1,85,5,113)
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> STOR dump_2009-08-20.13:18:21.gzip
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 150 Connection accepted
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 450 can't access file.
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> QUIT
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> 221 Goodbye
(000503) 20.08.2009 13:18:55 - webadmin (192.168.6.10)> disconnected.