Skip to content

Instantly share code, notes, and snippets.

@seliverstov-maxim
Created February 11, 2015 14:29
Show Gist options
  • Select an option

  • Save seliverstov-maxim/9abc1cc622e4172c48b3 to your computer and use it in GitHub Desktop.

Select an option

Save seliverstov-maxim/9abc1cc622e4172c48b3 to your computer and use it in GitHub Desktop.
Rsync fast comands
a = archive - means it preserves permissions (owners, groups), times, symbolic links, and devices.
r = recursive - means it copies directories and sub directories
v = verbose - means that it prints on the screen what is being copied
z = compress - compress file data during the transfer
rsync -arvz --exclude="*.log" --exclude="*.gz" [email protected]:/var/www/site.home ./
// it's create new 'site.home' folder in current dir.
@seliverstov-maxim
Copy link
Author

./some/path/to/dir :/some/path/to/
вольет папку dir в /some/path/to/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment