Skip to content

Instantly share code, notes, and snippets.

@brokendish
Created January 22, 2012 12:07
Show Gist options
  • Save brokendish/1656742 to your computer and use it in GitHub Desktop.
Save brokendish/1656742 to your computer and use it in GitHub Desktop.
rsyncでローカル(Ubuntu)からVPSのデータを取得
rsync -avz -e 'ssh -p xx -i /hoge/hoge/.ssh/rsa' hoge.com:/hoge/bkup /hoge/hoge/VPSBkUp/week-1
rsync -avz -e 'ssh -p xx -i /hoge/hoge/.ssh/rsa' hoge.com:/hoge/bkup /hoge/hoge/VPSBkUp/week-2
rsync -avz -e 'ssh -p xx -i /hoge/hoge/.ssh/rsa' hoge.com:/hoge/bkup /hoge/hoge/VPSBkUp/week-3
rsync -avz -e 'ssh -p xx -i /hoge/hoge/.ssh/rsa' hoge.com:/hoge/bkup /hoge/hoge/VPSBkUp/week-4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment