dpipper
12-13-2000, 03:15 PM
I am using the following script to backup my home dir from RH 6 box to my networked Win98 machine.
#!/bin/bash
# backup shell script for cronjob
# created Wed Dec 13 09:20:18 2000
location=/home/
backuplocation=/mnt/win_d/temp
today=`date +%Y%m%d`
#tar/gzip and copy the files to the storage drive on Windows
tar cvfz ${backuplocation}/home_${today}.tar.gz ${location}
How can I add that to the cron.weekly? Also, what can I do to get the script to only update the files that have changed in the last week?
Thanks
dpipper
#!/bin/bash
# backup shell script for cronjob
# created Wed Dec 13 09:20:18 2000
location=/home/
backuplocation=/mnt/win_d/temp
today=`date +%Y%m%d`
#tar/gzip and copy the files to the storage drive on Windows
tar cvfz ${backuplocation}/home_${today}.tar.gz ${location}
How can I add that to the cron.weekly? Also, what can I do to get the script to only update the files that have changed in the last week?
Thanks
dpipper