ridzimeko / rsync-cheatsheet
1 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
| 1 | # filter directory based on .gitignore file |
| 2 | --filter=":- .gitignore" |
| 3 | |
| 4 | # exclude .git folder |
| 5 | --exclude='/.git' |
| 6 | |
| 7 | # run rsync as sudo |
| 8 | --rsync-path="sudo rsync" |
| 9 | |
| 10 | # Run rsync as sudo with gitignore and exclude .git folder |
ridzimeko / Caddy Gist
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
Useful list of Caddy Server gist
| 1 | # See Caddy Server logs more readable |
| 2 | sudo jq -j '.ts |= strftime("%Y-%m-%d %H:%M:%S") | .request.remote_ip |= .[:-6] | .ts, "|", .request.remote_ip,"|", .request.uri,"|", .request.method,"|", .request.proto,"|", .status,"|", .request.headers."User-Agent"[]+"\n"' |
Новее
Позже