Skip to content

Command cp (Friendly file copy with ETA (resumable))

Franco Corbelli edited this page Sep 2, 2023 · 3 revisions

Copy files (with wildcards) into -to folder with 1 sec progression feedback. Huge file, tiny bandwidth
and unreliable media (-verify)
By default overwrite, use -paranoid to create unique name

The main use is for progress feedback, to make sure it's not stuck

The secondary, extremely important when using .zpaq files, is the ability to use -append, just like rsync's --append switch Updating a zpaq file on a samba NAS is essentially straightforward

This makes a copy resumable, for example in case of interruptions on the connection, control-c or whatever

Some real-world usage

  • -verify Do an heavy (XXH3) check of copied data
  • -paranoid Rename output file to do not overwrite
  • -append Only append data (*risky, use with zpaq archives)
  • -force Do no check if destination is writeable
  • -space Do no check if enough destination free space

Examples:

Copy k:\*.mp4 d:\a.txt in z:\pluto   cp k:\*.mp4 d:\a.txt -to z:\pluto
Copy with verify                     cp k:\*.mp4 -to z:\pluto -verify
Copy WITHOUT overwrite               cp k:\*.mp4 -to z:\pluto -paranoid
Resumable copy (append only)         cp k:\*.zpaq -to z:\pluto -append
Clone this wiki locally