View Single Post
Old 12-12-2003, 02:53 AM  
fsfaz
Confirmed User
 
Join Date: Apr 2003
Location: Hollyweird, CA
Posts: 747
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.
fsfaz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote