|
#1
|
|||
|
|||
|
Hi Guys,
Do you have any scripts you use/can-share that replicate dirs (recursively) from one FTP server to another.. My current server doesnt allow rsync... Ideally one that performs an accurate diff.. so only new/changed files are copied. I can then run this weekly/monthly via cron. Cheers |
|
#2
|
||||
|
||||
|
I dont have that, tho I have something for big filetransfers from server to server, ive tested it with firefoxs, and even if the browser stops loading it keeps getting the file. So no timeouts are effected.
Heres the code hope it helps. Code:
<?php
if ($_GET[xfer]) {
if ($_POST[from] == "") {
print "You forgot to enter a url.";
} else {
copy("$_POST[from]", "$_POST[to]");
$size = round((filesize($_POST[to])/1000000), 3);
print "transfer complete.<br>
<a><a href=\"$_POST[from]\">$_POST[from]</a><br>
<a><a href=\"$_POST[to]\">$_POST[to]</a> : $size MB";
}
} else {
print "<form action=\"$PHP_SELF?xfer=true\" method=post>
from(http://): <input name=from><br>
to(filename): <input name=to><br>
<input type=submit value=\"transload\">";
}
?>
|
|
#3
|
||||
|
||||
|
@Special im not able to get it working....
And ive been looking for exactly this kind of thing...
__________________
http://free-vent.com Providing FREE PUBLIC Ventrilo (VOIP) use. |
|
#4
|
||||
|
||||
|
Quote:
__________________
Enjoy Being a HostGator Customer
|
|
#5
|
||||
|
||||
|
Its works for small files...
And im going to guess its not working because of the limitations on the HG servers?
__________________
http://free-vent.com Providing FREE PUBLIC Ventrilo (VOIP) use. |
|
#6
|
|||
|
|||
|
thats a nice tool.. but no use for me
![]() im needing a recursive grab script.. 3000+ files. but preferably only the ones that have changed. (this is to sync two gallery2 mirrors) |
|
#7
|
||||
|
||||
|
My script is working fine I use it to transload files from 180/240mb filesize I can show it to you like 123. But the server at hand shoud have hotlinking off I mean if hotlinking is on on the site where your downloading from forget it it wont work.
http://www.animeresource.org/include/transload.ace unpack with winace or any other program that supports winace. chmod file itself to 777 and the directory. It works 100% ive bin using my script for 6 months now dident inprove it cause it dus the job. And moby, you can use this script as a base and inprove it into a directory downloader. you will however have to make sure the directory is exposed or type a full list of the files that need to be downloaded. Anyone really wants to use this transload script, and is unable to get it working add my msn admin@animeresource.org and ill do my best to assist you. |
![]() |
| Bookmarks |
| Thread Tools | |
|
|