Created
January 22, 2012 12:01
-
-
Save brokendish/1656715 to your computer and use it in GitHub Desktop.
tarでバックアップするシェル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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