All
I have Kurobox HG with Sylver. I also have a USB hard drive attached to it. I want to backup my movie folder to the USB hard drive.
I have installed rsync and I can sync my "Movie" folder in Kurobox with my USB drive.
rsync -a /mnt/movie/ /mnt2/usbdisk1/
This works great, but I want to schedule it with cron. I cannot make this work for some reasons. Please let me know what I am doing wrong. I have tried the following, but none of them worked.
1. log on as root and run "crontab -e".
Then add 00 4 * * * rsync -a /mnt/movie/ /mnt2/usbdisk1/
2. create a file called "backup.sh" in /usr/local/bin
Then, add rsync -a /mnt/movie/ /mnt2/usbdisk1/ in the script
After that run "crontab -e" and add
00 4 * * * /usr/local/bin/backup.sh
Lastly, run chmod 755 backup.sh
3. added the same backup.sh in cron.d folder.
I am still new to Linux and still learning little by little. I would appreciate your input.
|