Mailinglist Archive: opensuse (2086 mails)
| < Previous | Next > |
[opensuse] Ftp cron job stopped working
- From: "Brandon Carl" <spleeyah@xxxxxxxxxxxx>
- Date: Sat, 18 Aug 2007 10:28:46 -0700
- Message-id: <7892395011334F77B1DEE0055E5D96FB@SpleeyahC2D>
I'm running an opensuse 10.2 machine with a cron job that ftps to my
webserver and downloads several backup files that are created four times
daily.
Here is the content of the .sh file that runs:
#!/bin/sh
HOST='web170.ixwebhosting.com'
USER='*REMOVED*'
PASSWD='*REMOVED*'
ftp -n $HOST <<SCRIPT
user $USER $PASSWD
binary
lcd /home/spleeyah/wmbs/wmbs.spleeyah.com/backup/
cd /wmbs.spleeyah.com/backup/
prompt
mget *
quit
SCRIPT
exit 0
Basically what it does is connects to the ftp server, goes to the "backup" directory where there are several .tar.gz files, and downloads them all. I couldn't find a way to ftp just the new ones, so I set it to download them all. There are 548 files as of now, so maybe that's not such a good idea now that I think about it. Maybe the itense bandwidth could kill my cronjob? Backups on my webserver are done 4 times a day, and this cronjob is 15 minutes after the start of the webserver cron, which usually lasts about 2 minutes, average.
Here is the contents of my crontab:
15 0,6,12,18 * * * sh /home/spleeyah/sh/ftp_wmbs_database_backup.sh > /home/spleeyah/wmbs/wmbs.spleeyah.com/backup/ftp_mysql_backup.log
And, finally, the output of the cronjob that gets e-mailed to me:
ftp: Name or service not known
So, I don't know what caused this to stop working, because it was working wonders before.
Thanks!
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
Here is the content of the .sh file that runs:
#!/bin/sh
HOST='web170.ixwebhosting.com'
USER='*REMOVED*'
PASSWD='*REMOVED*'
ftp -n $HOST <<SCRIPT
user $USER $PASSWD
binary
lcd /home/spleeyah/wmbs/wmbs.spleeyah.com/backup/
cd /wmbs.spleeyah.com/backup/
prompt
mget *
quit
SCRIPT
exit 0
Basically what it does is connects to the ftp server, goes to the "backup" directory where there are several .tar.gz files, and downloads them all. I couldn't find a way to ftp just the new ones, so I set it to download them all. There are 548 files as of now, so maybe that's not such a good idea now that I think about it. Maybe the itense bandwidth could kill my cronjob? Backups on my webserver are done 4 times a day, and this cronjob is 15 minutes after the start of the webserver cron, which usually lasts about 2 minutes, average.
Here is the contents of my crontab:
15 0,6,12,18 * * * sh /home/spleeyah/sh/ftp_wmbs_database_backup.sh > /home/spleeyah/wmbs/wmbs.spleeyah.com/backup/ftp_mysql_backup.log
And, finally, the output of the cronjob that gets e-mailed to me:
ftp: Name or service not known
So, I don't know what caused this to stop working, because it was working wonders before.
Thanks!
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |