Today I set up a bash script in order to create backups with rsync. I created it in a OS 10.7.x (Lion) environment. Steps I did are:
- I formatted a WD hard disk following this link: http://wdc.custhelp.com/app/answers/detail/search/1/a_id/3865/c/130/p/228,219,290
- I developed backup.sh script adding this code:
#!/bin/bash
PATHFROM = "/.../..." # folder to create backup
PATHTO = "/.../..." # path of the hard disk
rsync -av --exclude={"*chat*","*library*"} $PATHFROM $PATHTO
No comments:
Post a Comment