|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Cronjob file transfer for a Noob
As the title says, I'm a complete noob. My adventures in google haven't been particularly fruitful, so any help is greatly appreciated.
Goal: Perform a weekly backup of a MySQL database, and send it to another server. Here's what I have so far: Code:
* 3 * * 0 /home/path/to/backup.sh >/dev/null 2>&1 Code:
#!/bin/sh date=`date '+%m-%d-%y'` mysqldump -uDB_USERNAME -pDB_PASSWORD --opt DB_NAME >/home/path/to/$date.sql .......and now what? Can I somehow ftp the file to another server? |
|
#2
|
||||
|
||||
|
RE: Cronjob file transfer for a Noob
FTP is one thing, but I'd use SCP.
scp /path/to/file user@remote.machine:/path/to/file/on/remote/machine |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > Cronjob file transfer for a Noob |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|