Portal Home > Knowledgebase > Articles Database > Need Some SSH Commands For rsyn


Need Some SSH Commands For rsyn




Posted by rathin, 05-25-2008, 10:18 AM
Need Some SSH Commands For rsyn-For Cron Job I need some commands for cron job, i need to backup only 2 account backup in cron job one username is panther that a/c is in paretition "home" another a/c name logictec itz in partion "home2" for this two a/c only i need make cron job but there are in seprate partion can u help me in give the comman which can make backup in cronjob every one day

Posted by relichost, 05-25-2008, 10:25 AM
Hi Here you go http://sial.org/howto/rsync/ Thanks

Posted by rathin, 05-25-2008, 10:56 AM
Thanks for reply,abt there i cant able to see any post regard tow seprate partion for cron job,any one can give me command to take backup for two partion for two differnt users

Posted by rathin, 05-25-2008, 11:07 AM
this comman i know that echo "15 0 * * * root rsync -avz --exclude=/proc -e ssh / server@server.domain.com:folder" >> /etc/crontab but i need to cron two a/c only that two a/c placed under differnt partion eg 1st in home and 2rd in home2,can anyone help in this

Posted by rathin, 05-25-2008, 11:27 AM
i used 2 cron job for backup two differnt partion,i used this comman 15 0 * * * root rsync -avz -e ssh /home/username server@server.domain.com:folder" >> /etc/crontab For 2rd partion user i used 15 0 * * * root rsync -avz -e ssh /home2/username server@server.domain.com:folder" >> /etc/crontab is this command is correct,also i dont ask for any anthetication when i used this command



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read