首页 » 2019 » July

Monthly: July 2019

Copy sparse directory over ssh

lesca | CentOS, RaspberryPi, Ubuntu | 2019-07-22
scp can copy directory over ssh, but sparse parameter is not supported (unlike cp). To efficiently copy directory with sparse files, use tar and ssh instead. # Copy "images" directory to remote server tar -cvSf - images/ | ssh user@remoteHost "(cd /mnt/pve/vmdata/ ; tar -xf -)" S – stands for sparse tarscp.sh sc... [阅读全文]
Ɣ回顶部