Skip to content

Instantly share code, notes, and snippets.

@brokendish
Created January 22, 2012 12:01
Show Gist options
  • Save brokendish/1656715 to your computer and use it in GitHub Desktop.
Save brokendish/1656715 to your computer and use it in GitHub Desktop.
tarでバックアップするシェル
vi all-sys-bkup.sh
#!/bin/sh
tar czvplf /hoge/bkup/vpsBKUP.tar.gz --exclude hoge/bkup/vpsBKUP.tar.gz --exclude /dev --exclude /etc/network --exclude networks --exclude hosts --exclude /boot --exclude /home/swap --exclude /hoge/bkup --exclude /proc --exclude /sys --exclude /var/run --exclude /var/lock --exclude fstab / >bkup.lst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment