Results 1 to 5 of 5
  1. #1

    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?

  2. #2
    Join Date
    Apr 2004
    Location
    Nijmegen, Netherlands
    Posts
    38
    What's a cron-script? I do know how to move a file from one server to another server!

  3. #3
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    4,695
    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.

  4. #4
    Join Date
    Jul 2003
    Location
    Kuwait
    Posts
    5,099
    In order to understand recursion, one must first understand recursion.
    If you feel like it, you can read my blog
    Signal > Noise

  5. #5
    Join Date
    Feb 2004
    Posts
    772
    Hi,

    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/

    Regards,

    Bright
    24/7 Technical Support
    Bright Info Solutions

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •