var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
what is the command to send a file?
I want to make a cron-script to upload backups to another server, but the ftp-command is an interactive one.
So anyone got an example of a cron-script to move a file from one server to another server?
What's a cron-script? I do know how to move a file from one server to another server!
PHP has it's own set of FTP functions, such as ftp_connect() ftp_put() etc quite simple stuff.
See http://uk.php.net/manual/en/ref.ftp.php for reference, i'm sure you'll find some example code in the notes there too.
You can pass a file that has all the commands to the ftp command in an argument. For Windows version of ftp, the command line argument is -s
On FreeBSD, you can pass the complete URL http: to enable automatic fetching. [email protected]:port/dir/file.ext
You may be use a different ftp client (ncftp, etc.) to get more options for Linux/Unix based systems.
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my
Signal > Noise
The rsync remote-update protocol allows rsync to transfer just the differences between two sets of files across the network link, using an efficient checksum-search algorithm described in the technical report at accompanies this package.
you can place single rsync command in cron to run.
for further details http://rsync.samba.org/
24/7 Technical Support
Bright Info Solutions