daily_and_weekly_backup_with_rsync
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
daily_and_weekly_backup_with_rsync [2009/10/14 03:22] – jt | daily_and_weekly_backup_with_rsync [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Daily and Weekly Backup with Rsync ==== | ||
- | <code bash | backup-cron.sh> | ||
- | #!/bin/bash | ||
- | |||
- | DAY=$(/ | ||
- | DOW=$(/ | ||
- | PATH="/ | ||
- | |||
- | if [ $DOW == ' | ||
- | |||
- | / | ||
- | else | ||
- | / | ||
- | /bin/touch $PATH/ | ||
- | fi | ||
- | |||
- | for i in $(/ | ||
- | do | ||
- | echo " | ||
- | /bin/rm -Rf $i; | ||
- | done | ||
- | </ |
daily_and_weekly_backup_with_rsync.1255490538.txt.gz · Last modified: 2020/08/10 02:29 (external edit)