Welcome Guest, Not a member yet? Register   Sign In
Download large file
#7

(This post was last modified: 04-24-2020, 09:20 PM by John_Betong.)

@omid_student

Further to my previous post I think Rsync is installed by default on most Linux systems because it is used frequently to copy complete online domain contents across the web without having to download  a single file to the localhost.

Give this a whirl:

1.  creating a "RSYNC.php" in a new directory on your localhost computer 

2. modify the $src and $dst variables in the following file

3. run the script in the browser

4. copy and paste the output to a terminal window

5. if there are no errors then check to see if the file was uploaded to the online domain.

Here is a short script that copies all file from source to destination. The output needs to be copied and pasted into a command terminal:

File: RSYNC.php
Code:
<?php declare(strict_types=1);
  error_reporting(-1);            // should be set in php.ini
  ini_set('display_errors', '1'); // should be set in php.ini

  $src = '/var/www/supiet.tk';
  $dst = '[email protected]:/var/www/supiet.tk';

  echo "rsync -avz  {$src}/ -e ssh {$dst}/ ";

  // Check the manual for the -avz -e ssh parameters.
  // Please note and experiment with trailing slash usage
Reply


Messages In This Thread
Download large file - by omid_student - 04-21-2020, 04:24 AM
RE: Download large file - by albertleao - 04-21-2020, 06:49 AM
RE: Download large file - by omid_student - 04-21-2020, 07:41 AM
RE: Download large file - by John_Betong - 04-21-2020, 08:41 AM
RE: Download large file - by omid_student - 04-24-2020, 04:48 AM
RE: Download large file - by InsiteFX - 04-24-2020, 08:00 AM
RE: Download large file - by John_Betong - 04-24-2020, 09:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB