Skip to content

Instantly share code, notes, and snippets.

@adzhurinskij
adzhurinskij / Documentation.md
Last active December 16, 2023 07:26
The fastest sync directory over ssh with tar

The fastest sync directory over ssh with tar

It's simple command for transfer a large number of small files over ssh.

You need to first go to directory, if you want to copy content of directory.

cd /var/www
tar cpf - ./ | ssh <user>@<dest_ip> "tar xpf - -C /var/www"

Preview speed copy with pv:

@atotto
atotto / google_drive_create_file_example.go
Created June 6, 2016 06:57
google drive example (v3 create file)
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"os"