GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Server to server transfer script? (https://gfy.com/showthread.php?t=207661)

salo18 12-12-2003 02:44 AM

Server to server transfer script?
 
Anyone know of a script that I can use to send files from my old server to my new?
I cant get FXP to work so I need to do this with a script :/

fsfaz 12-12-2003 02:53 AM

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.

Volantt 12-12-2003 02:54 AM

Yes, I am confused also.. I am guessing only needed to do it once. Then tar or zip would be your best bet like above.

V


All times are GMT -7. The time now is 01:39 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123