|
What kind of script you want? Are you looking to just transfer the files once or daily? Why not just tar them up or have them tar them up and then just ftp into the box and do a get.
If your looking for a shell script to do it automatically for automated backups, try this ...
Create blah.sh
#!/bin/sh
ftp -n << EOF
verbose
open yourhost.com
user <yourusername><yourpasswd>
binary
lcd /usr/home/yourdir
cd /usr/home/anotherdir
get tar.tar
close
EOF
It's not the safest in the world, but works.
|