Quote:
Originally Posted by Annielover
You have to restart the cron deamon.
Try
Code:
sudo /etc/init.d/cron restart
OR
Code:
sudo service cron restart
|
i've solved it
1 make a script file : backup.sh
#(make sure this file has the execute permission)
#! /bin/sh
BDATE=`date +%Y%m%d`
sudo svnadmin dump /home/clx/project1 > /home/clx/backup$BDATE.dump
echo success!
2 in /etc/crontab
0 24 * * * root sudo /home/clx/backup.sh
3 then the backup file backup20110807.dump will be in /home/clx/
4 and recover that backup file :
~$svnadmin create newproject1;svnadmin load newproject1 < backup20110807.dump
but now i want to backup the trunk of my repository.only the trunk,not the whole repository
and the most important ,how to recover the trunk