If you want to recover any folder or file which was deleted accidentally you can recover the same. First you need to figure out the revision number when it was deleted. Now use this command on server to get back file/folder .
Remember even if you perform delete operation in SVN nothing gets deleted it is just omitted from future checkout's and updates.
svn cp -r 47 https://amit.example.com/svn/repos/test_repo/data/somefolder/Debug https://amit.example.com/svn/repos/test_repo/data/somefPublish Postolder/
Thursday, November 11, 2010
Sunday, November 7, 2010
Code Freeze SVN
To implement Code freeze in SVN you can write pre-commit hook script. Here is a sample script which does this job on specified paths. You please remove all echo in case implementing on production.
REPOS="$1"
TXN="$2"
echo "value of REPOS is :$REPOS" >> /svnroot/test_repo_precommit/hooks/precommit.log
echo "value of TXN is :$TXN" >> /svnroot/test_repo_precommit/hooks/precommit.log
REPO_URL_TO_MATCH=(
'/svnroot/test_repo_precommit/somepath1'
'/svnroot/test_repo_precommit/somepath2'
'/svnroot/test_repo_precommit/somepath2'
);
echo "printing REPO_URL_TO_MATCH array values : ${REPO_URL_TO_MATCH[@]}" >> /svnroot/test_repo_precommit/hooks/precommit.log
for REPO_URL_TO_MATCH in ${REPO_URL_TO_MATCH[@]}
do
echo "in for loop print REPO_URL_TO_MATCH :$REPO_URL_TO_MATCH" >> /svnroot/test_repo_precommit/hooks/precommit.log;
RESULT1=`svnlook dirs-changed "$REPOS" -t $TXN | grep -e "$REPO_URL_TO_MATCH"`;
echo " printing value of RESULT1 : $RESULT1" >> /svnroot/test_repo_precommit/hooks/precommit.log;
for pattern in $RESULT1
do
if [ ! -z "$pattern" ];
echo " Value of pattern is :$pattern " >> /svnroot/test_repo_precommit/hooks/precommit.log
then
echo "*** Your commit has been blocked because code is in freezed mode, Please contact repo administrator to remove code freeze from this path."
exit 1
fi
done
echo "Exit from Loop one " >> /svnroot/test_repo_precommit/hooks/precommit.log
done
echo `date` >> /svnroot/test_repo_precommit/hooks/precommit.log
echo "*********************This is end of script************************************" >> /svnroot/test_repo_precommit/hooks/precommit.log
REPOS="$1"
TXN="$2"
echo "value of REPOS is :$REPOS" >> /svnroot/test_repo_precommit/hooks/precommit.log
echo "value of TXN is :$TXN" >> /svnroot/test_repo_precommit/hooks/precommit.log
REPO_URL_TO_MATCH=(
'/svnroot/test_repo_precommit/somepath1'
'/svnroot/test_repo_precommit/somepath2'
'/svnroot/test_repo_precommit/somepath2'
);
echo "printing REPO_URL_TO_MATCH array values : ${REPO_URL_TO_MATCH[@]}" >> /svnroot/test_repo_precommit/hooks/precommit.log
for REPO_URL_TO_MATCH in ${REPO_URL_TO_MATCH[@]}
do
echo "in for loop print REPO_URL_TO_MATCH :$REPO_URL_TO_MATCH" >> /svnroot/test_repo_precommit/hooks/precommit.log;
RESULT1=`svnlook dirs-changed "$REPOS" -t $TXN | grep -e "$REPO_URL_TO_MATCH"`;
echo " printing value of RESULT1 : $RESULT1" >> /svnroot/test_repo_precommit/hooks/precommit.log;
for pattern in $RESULT1
do
if [ ! -z "$pattern" ];
echo " Value of pattern is :$pattern " >> /svnroot/test_repo_precommit/hooks/precommit.log
then
echo "*** Your commit has been blocked because code is in freezed mode, Please contact repo administrator to remove code freeze from this path."
exit 1
fi
done
echo "Exit from Loop one " >> /svnroot/test_repo_precommit/hooks/precommit.log
done
echo `date` >> /svnroot/test_repo_precommit/hooks/precommit.log
echo "*********************This is end of script************************************" >> /svnroot/test_repo_precommit/hooks/precommit.log
Tuesday, October 12, 2010
What a job
As a System Administration you will work with world class teams and lead system engineering and administration efforts of our globally distributed, Web 2.0 products used by millions worldwide. These products involve myriad technologies, diverse platforms, Server load balancing, High Availability (HA) clusters, IP/FC SANs, Distributed File Systems etc.
In any of these roles, you will lead a team of highly technical System Administrators and will be responsible for the architecture, planning, implementation, configuration, automation, deployment, administration, monitoring and management of our large-scale, globally distributed products. We are sticklers for automation, and as such you will be expected to automate all processes using myriad scripting languages, automation tools, open source software etc. You will be involved in macro decisions as well as actual implementations in the trenches along with your troops. You will be expected to keep abreast of the latest and greatest in system administration. Your role will also involve recruitment, training, mentoring and knowledge-sharing.
Some of your responsibilities will include -
Auto-Installation, Configuration Management, High Availability, Clustering, Load Balancing, Planning Storage Systems, Monitoring, Reporting, Data migration, Replication, Backups, Networking, Equipment Selection, Security Assessments, Troubleshooting, Managing DNS, Delivering 5 nines Uptime, Scalability, Managing logging and troubleshooting, Scripting, Research, Software Selection, Platform selection, Architecture, Performance tuning, Automated package deployment, Auto-updates, Server hardening etc
FOSS experts, Unix/Linux gurus, Uber geeks/nerds. You love phrack, ;login & miss Sysad magazine. You use mutt for email, run bleeding edge distros/softwares, use NNTP/IRC/mailing lists, enjoy & contribute to postfix vs qmail vs send mail vs Exim vs Exchange OR vi/vim vs emacs debates, are an avid blogger, and believe that a shell is the only application one needs for performing any task.
You have 8+ years experience in System Architecture and Administration of which 2+ years have been spent in managing a reasonably sized team of highly technical System Administrators managing 500+ nodes using automated processes and systems.
You have spent a considerable amount of time bootstrapping large distributed infrastructure deployments from scratch and have gained significant exposure to high availability, scalability, architecture, problem solving and troubleshooting skills. You are extremely tech focused - a configuration management and automation guru. You NEVER do repeatable stuff twice and have created a repo of timeless automation scripts/configuration management code over the years. You possess sharp reasoning and logical skills, are a master of regular expressions, have a good grasp on programming traditions/tools/languages and can whip a script/program as required. You use gdb/SystemTap/Frysk to debug system problems/coredumps/backtraces.
You are a DNS & networking guru with the ability to troubleshoot networking issues with tcpdump/wireshark/etc. You are not rigid with respect to choice of technology, are relatively platform agnostic, and open to adopting the right technology for the task at hand. You have exceptional oral/written communication skills and a good sense of business.
You are innately curious, and take time out to keep up with system administration trends and practices. You can deliver reliable systems, monitoring tools, scripts and application configurations at a rapid pace.
Skills:
You are acquainted with / have mastered a few of the below skills/tools -
Linux/FreeBSD/OpenBSD/Solaris, Any Shell/Bash, PERL/C/Ruby/Python/PHP, Basic DNS & Networking, TCP/UDP, IP Routing, tcpdump, netcat, netstat, lsof, ethereal/wireshark, IPTables, Nagios, Cactii, RRDTool, MRTG, SNMP, Postfix/qmail/Exim/Sendmail, RDBMS, MySQL/MySQL Cluster, Postgres, MSSQL, BDB, IPC, Regular expressions, Caching, nginx/perlbal/varnish/squid, Perdition, Apache/lighttpd/Axes/IIS, Tomcat/Resin, Rewrite, SSH/SSL, LDAP/Active Directory, RADIUS, DHCP, Kickstart/Cobbler, Yum/Up2date, Stateless Linux, NIS, NFS/CIFS, ext3/ext4/GFS/XFS/ZFS/btrfs, DRBD/NBD, RAID, IP/FC SAN, NAS, Heartbeat/Wackamole, LVS/ldirectord, Load Balancing, Multi-threading, Concurrency, Async IO, Scalability, Emacs, VI/VIM, KVMs, gdb, frysk, SystemTap, oprofile, GIT, CVS, SVN... ad infinitum
In any of these roles, you will lead a team of highly technical System Administrators and will be responsible for the architecture, planning, implementation, configuration, automation, deployment, administration, monitoring and management of our large-scale, globally distributed products. We are sticklers for automation, and as such you will be expected to automate all processes using myriad scripting languages, automation tools, open source software etc. You will be involved in macro decisions as well as actual implementations in the trenches along with your troops. You will be expected to keep abreast of the latest and greatest in system administration. Your role will also involve recruitment, training, mentoring and knowledge-sharing.
Some of your responsibilities will include -
Auto-Installation, Configuration Management, High Availability, Clustering, Load Balancing, Planning Storage Systems, Monitoring, Reporting, Data migration, Replication, Backups, Networking, Equipment Selection, Security Assessments, Troubleshooting, Managing DNS, Delivering 5 nines Uptime, Scalability, Managing logging and troubleshooting, Scripting, Research, Software Selection, Platform selection, Architecture, Performance tuning, Automated package deployment, Auto-updates, Server hardening etc
FOSS experts, Unix/Linux gurus, Uber geeks/nerds. You love phrack, ;login & miss Sysad magazine. You use mutt for email, run bleeding edge distros/softwares, use NNTP/IRC/mailing lists, enjoy & contribute to postfix vs qmail vs send mail vs Exim vs Exchange OR vi/vim vs emacs debates, are an avid blogger, and believe that a shell is the only application one needs for performing any task.
You have 8+ years experience in System Architecture and Administration of which 2+ years have been spent in managing a reasonably sized team of highly technical System Administrators managing 500+ nodes using automated processes and systems.
You have spent a considerable amount of time bootstrapping large distributed infrastructure deployments from scratch and have gained significant exposure to high availability, scalability, architecture, problem solving and troubleshooting skills. You are extremely tech focused - a configuration management and automation guru. You NEVER do repeatable stuff twice and have created a repo of timeless automation scripts/configuration management code over the years. You possess sharp reasoning and logical skills, are a master of regular expressions, have a good grasp on programming traditions/tools/languages and can whip a script/program as required. You use gdb/SystemTap/Frysk to debug system problems/coredumps/backtraces.
You are a DNS & networking guru with the ability to troubleshoot networking issues with tcpdump/wireshark/etc. You are not rigid with respect to choice of technology, are relatively platform agnostic, and open to adopting the right technology for the task at hand. You have exceptional oral/written communication skills and a good sense of business.
You are innately curious, and take time out to keep up with system administration trends and practices. You can deliver reliable systems, monitoring tools, scripts and application configurations at a rapid pace.
Skills:
You are acquainted with / have mastered a few of the below skills/tools -
Linux/FreeBSD/OpenBSD/Solaris, Any Shell/Bash, PERL/C/Ruby/Python/PHP, Basic DNS & Networking, TCP/UDP, IP Routing, tcpdump, netcat, netstat, lsof, ethereal/wireshark, IPTables, Nagios, Cactii, RRDTool, MRTG, SNMP, Postfix/qmail/Exim/Sendmail, RDBMS, MySQL/MySQL Cluster, Postgres, MSSQL, BDB, IPC, Regular expressions, Caching, nginx/perlbal/varnish/squid, Perdition, Apache/lighttpd/Axes/IIS, Tomcat/Resin, Rewrite, SSH/SSL, LDAP/Active Directory, RADIUS, DHCP, Kickstart/Cobbler, Yum/Up2date, Stateless Linux, NIS, NFS/CIFS, ext3/ext4/GFS/XFS/ZFS/btrfs, DRBD/NBD, RAID, IP/FC SAN, NAS, Heartbeat/Wackamole, LVS/ldirectord, Load Balancing, Multi-threading, Concurrency, Async IO, Scalability, Emacs, VI/VIM, KVMs, gdb, frysk, SystemTap, oprofile, GIT, CVS, SVN... ad infinitum
Monday, September 27, 2010
Institute of political Leadership
Hi
This post is just to remember that there is institute for political leadership. :)
cool isn't it.
http://www.iplindia.in/
This post is just to remember that there is institute for political leadership. :)
cool isn't it.
http://www.iplindia.in/
Sunday, September 12, 2010
Lives we are making Simple / Complicated
I have to go to office in morning and i am writing this post as i am not able to sleep :(
Have you ever thought that why we work.......other than Salary .. What value we are adding to this world by working. May be are trying to make things better and simpler, and in order to do that in most efficient (in term of cost\time ) we are making things more complex.
I am a System Admin, right now handling a Application support. Application which supports developers to manage there code and help project manager to plan for projects.
These developers are writing code for their clients may be banking , telecom , those companies are again working to provide me better services and see what, indirectly am doing all for my comfort.
But am i really in comfort am i actually enjoying life, am i really earn to live, seems like i am living to earn.
Life seems to be like an race, we humans are again living like animals prisoners to our schedule.
Some time i really think about life in past, we have been trying to make out lives better, are we successful enough to do this, are we living a better life, writing this blog sitting on my laptop gives me feel definitely things have changed and are much better from past, than why it happens that feeling of fulfillment is not there, there are something missing, something incomplete.
If only i was again a 6 Year old child and make excuse of stomach ace for not going to school. :(
Have you ever thought that why we work.......other than Salary .. What value we are adding to this world by working. May be are trying to make things better and simpler, and in order to do that in most efficient (in term of cost\time ) we are making things more complex.
I am a System Admin, right now handling a Application support. Application which supports developers to manage there code and help project manager to plan for projects.
These developers are writing code for their clients may be banking , telecom , those companies are again working to provide me better services and see what, indirectly am doing all for my comfort.
This circle made me understand a lot of things that if i will not give good service i am not going to get good service.
But am i really in comfort am i actually enjoying life, am i really earn to live, seems like i am living to earn.
Life seems to be like an race, we humans are again living like animals prisoners to our schedule.
Some time i really think about life in past, we have been trying to make out lives better, are we successful enough to do this, are we living a better life, writing this blog sitting on my laptop gives me feel definitely things have changed and are much better from past, than why it happens that feeling of fulfillment is not there, there are something missing, something incomplete.
If only i was again a 6 Year old child and make excuse of stomach ace for not going to school. :(
Wednesday, September 8, 2010
Start a Political party
Here are the things which can be implemented to start a political party. I am writing this because of my low memory. Idea's flash in my mind and than they disappear as they were never there. I as such don't have intention of starting a political party but i think things mentioned over here are surly going to work to win you at least one election later on all depends upon the work you do.
=> People are fed of system and 50% of India doesn't VOTE. NEVER ASK THEM TO VOTE FOR YOU rather ask them to just VOTE. Start a campaign in which ask people to VOTE, ask them to join you in movement to choose a right candidate and there should be a option of choosing NO candidate. Change and reforms in Elections is 1st thing, bring this in front of people. In your campaign publish 49-O as much as possible.
try to convince people not to give vote in influence of liquor or money offered.
=> Never made any promises, people don't have faith in promises.
=>Stand against reservation this will bring a big vote bank. tell them you will not give them bread but skills by which they can earn bread.
=>Publish bio-data of your candidates not the pictures, tell them how successful they already are in there lives, you need to convey that they are not in politics for money and power. Publish there wealth assets on your website.
=>ask for donation and funds to make them believe that you don't have corporate support with you.
=> Pitch for change in there social life conditions.
=> Bring issue that how politicians make rules and laws for common men which do not implement on them. Bring example of BRT corridor. Tell them your party workers will move in same lanes in which they are moving.
=> Justice delayed is Justice denied - tell them you are going to bring reforms in our courts. (THIS IS THE BIGGEST POINT TO CASH ON)
=>RTI will be available over phone.
=> your local constituency expenses made available to all in a form of news paper to all once in 6 months.
=>MCD complaints will handled over phone, all pit holes to filled in 48 hrs of reporting.
=> bring as much as local issues to pictures which effect the common men directly.
=>Common men (Middle class) people are the key to WIN elections.
=> Just don't tell what are you going to do tell people how you are going to do that. (People don;t believe un-realistic promises)
* You need to find people who can fund you for TV advertisement.
* You need to find people you will stand with you fight elections with you.
=> People are fed of system and 50% of India doesn't VOTE. NEVER ASK THEM TO VOTE FOR YOU rather ask them to just VOTE. Start a campaign in which ask people to VOTE, ask them to join you in movement to choose a right candidate and there should be a option of choosing NO candidate. Change and reforms in Elections is 1st thing, bring this in front of people. In your campaign publish 49-O as much as possible.
try to convince people not to give vote in influence of liquor or money offered.
=> Never made any promises, people don't have faith in promises.
=>Stand against reservation this will bring a big vote bank. tell them you will not give them bread but skills by which they can earn bread.
=>Publish bio-data of your candidates not the pictures, tell them how successful they already are in there lives, you need to convey that they are not in politics for money and power. Publish there wealth assets on your website.
=>ask for donation and funds to make them believe that you don't have corporate support with you.
=> Pitch for change in there social life conditions.
=> Bring issue that how politicians make rules and laws for common men which do not implement on them. Bring example of BRT corridor. Tell them your party workers will move in same lanes in which they are moving.
=> Justice delayed is Justice denied - tell them you are going to bring reforms in our courts. (THIS IS THE BIGGEST POINT TO CASH ON)
=>RTI will be available over phone.
=> your local constituency expenses made available to all in a form of news paper to all once in 6 months.
=>MCD complaints will handled over phone, all pit holes to filled in 48 hrs of reporting.
=> bring as much as local issues to pictures which effect the common men directly.
=>Common men (Middle class) people are the key to WIN elections.
=> Just don't tell what are you going to do tell people how you are going to do that. (People don;t believe un-realistic promises)
* You need to find people who can fund you for TV advertisement.
* You need to find people you will stand with you fight elections with you.
Thursday, September 2, 2010
Subscribe to:
Posts (Atom)