I have some important files need to backup from A server to B server, How could i create the php file to transfer it with ftp function? any help is appreciate. John
If it's your DB there's a remote MySQL DB feature in cpanel that you could use concurrently with your current DB, thus you'd have instant backup. Alternatively you'd need to set up a cron job to the remote server's ftp to upload— there's ample scripts, classes and other code snippets online for this. ROOFIS
If you are transferring large files you need to FTP in to the old server from the new server via the shell. Do NOT transfer large files via PHP. PHP will transfer the files via the web server which will have restrictions on execution time.
i think 2Mb is not too big, Yes, it is a DB file, but it is access DB, not Mysql. also the server is window, not linux. the window server can run php script. hope someone can help me to get the code.
Remote backup Ibackup Don’t ever use Ibackup, besides supper slow software that will use tons of resources, small tech support group, they will get you this way: You sign up for a contract let’s say of 100 G. for 10.00 Dollars; The next plan is 20.00 dollars for 250 Gigs. So you are not there at the time. After 3 months your business grows, and you need now to backup 150 G. You get an email your out of quota, I mean don’t panic, you know you will have to upgrade your plan to the next level of $20.00 No problem correct? Wrong! You will be charged insanely instead of going to a new contract. Sorry Ibackup two thumbs down.
you can try this. but i never ever tried. i got this in my web server forum #!/bin/ksh if [ -r ftp.pid ] then echo previous invocation still running exit fi echo $$ >ftp.pid ftp A <<EOF >A.list user password ls quit EOF ./createnewlist.ksh <A.list >new.list sleep 10 ftp A <new.list rm ftp.pid