Last active
August 29, 2015 14:06
-
-
Save bindiego/61b6c2ba6e004ca43714 to your computer and use it in GitHub Desktop.
backup and synchronization
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
#!/bin/bash | |
# crontab settings | |
# 0 3 * * * <path to file>/homedir_bak.sh | |
rsync -acz /home/wubin /data/backup/wubin_home > /dev/null 2>&1 & |
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
#!/bin/bash -ex | |
#Local: rsync [OPTION...] SRC... [DEST] | |
#Access via remote shell: | |
# Pull: rsync [OPTION...] [USER@]HOST:SRC... [DEST] | |
# Push: rsync [OPTION...] SRC... [USER@]HOST:DEST | |
#Access via rsync daemon: | |
# Pull: rsync [OPTION...] [USER@]HOST::SRC... [DEST] | |
# rsync [OPTION...] rsync://[USER@]HOST[:PORT]/SRC... [DEST] | |
# Push: rsync [OPTION...] SRC... [USER@]HOST::DEST | |
# rsync [OPTION...] SRC... rsync://[USER@]HOST[:PORT]/DEST | |
rsync -acvz [email protected]:/var/www/html/asof/* . |
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
#!/bin/bash -ex | |
tar czf - r2 r2.cn/ r2.edanzediting.com/ | ssh -p 2323 [email protected] 'tar xzf - -C /home/wubin/workspace/tmp/gitplay' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment