How does Linux realize the function of resuming file transfer?

  In the face of poor network conditions, it is easy to be interrupted when transferring files or downloading files on the Linux system. Repeated operations are very big, so everyone wants to transfer or download some files every time, which is the so-called The resumable upload. So how does Linux realize the function of resuming file transfer? The specific code is as follows:

  File breakpoint download

  rsync -P --rsh=ssh [email protected]:/root/m.tar.gz /test /n.tar.gz

  File breakpoint upload

  rsync -P --rsh=ssh /test/n.tar.gz [email protected]:/root/m.tar.gz

  File directory breakpoint download

  rsync -P --rsh=ssh -r [email protected]:/root/stor /test

  File directory breakpoint upload

  rsync -P --rsh=ssh -r /test [email protected]:/root/stor

  Run in the background, put the above script into the shell file

  cat bg.sh

  rsync -P --rsh=ssh -r [email protected]:/root/stor /test &

  Background process

  chmod +x bg.sh

  nohup ./bg.sh

Guess you like

Origin blog.51cto.com/15052541/2576952