This shows you the differences between two versions of the page.
daily_full_week_backup_and_rotation [2009/06/18 00:49] k2patel created |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Daily Full week backup ====== | ||
- | NOTE : This is stupid script but do good job | ||
- | |||
- | <code bash | bkup.sh> | ||
- | #!/bin/bash | ||
- | cd /home | ||
- | rm -f /home/ketan.$(date "+%a").tar | ||
- | tar -C /home/ketan -pcf /home/ketan.$(date "+%a").tar . | ||
- | chmod 600 /home/ketan.$(date "+%a").tar | ||
- | chown ketan:ketan /home/ketan.$(date "+%a").tar | ||
- | </code> |