Skip to content

Instantly share code, notes, and snippets.

@koba-ninkigumi
Created February 12, 2012 05:24
Show Gist options
  • Save koba-ninkigumi/1806525 to your computer and use it in GitHub Desktop.
Save koba-ninkigumi/1806525 to your computer and use it in GitHub Desktop.
rsync 除外ファイル指定
sudo rsync -av -e "ssh -i ~/.ssh/id_rsa" --exclude-from ~/Dropbox/rsync_exclude_pattern.txt ユーザ名@ホスト名:バックアップ元ファイル名 バックアップ先ディレクトリ名/
.DS_Store
.FBCLockFolder/
.FBCIndex
.cache/
.ssh/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment