First, make script to run
Ex :
nano backup.sh
#!/bin/sh
/usr/local/bin/rsync -aztpog --delete-after --log-file=/usr/local/src/rsyncall-`date +%d-%m-%Y_%I-%M`.log /usr/home/ /mnt/hdd/alldata/
save and exit
Note : In Freebsd, location of program/application must be specific. You can get location with command which ex : which rsync
Second, edit /etc/crontab to run your script
nano /etc/crontab
put in end of file
30 8 * * * root /usr/local/src/backup.sh
Note : you must be give who run script
Finally, cross your finger.
1 komentar:
Mantul, saya dari masa depan.
Posting Komentar