Webtools:SVN Guidelines: Difference between revisions

Jump to navigation Jump to search
Line 60: Line 60:


= Rolling back =
= Rolling back =
* Sysadmins, if the developer did things right, you should be able to rollback by using:
* If you have the last revision number, substitute it for the "100" here:
  [root@do-stage01]$ cd /data/live/www.mozilla.com/
  [root@do-stage01]$ cd /data/live/www.mozilla.com/
  [root@do-stage01]$ svn switch svn+ssh://svn.mozilla.org/projects/mozilla.com/tags/prod_<given datetime of revision>
  [root@do-stage01]$ svn switch -r 100 svn+ssh://svn.mozilla.org/projects/mozilla.com/tags/production
* If you just want whichever is before where you're at, and you don't have a number, you can see them all with:
* If you want to see all the revision numbers you can switch to, try this:
  [root@do-stage01]$ svn ls svn+ssh://svn.mozilla.org/projects/mozilla.com/tags
  [root@do-stage01]$ cd /data/live/www.mozilla.com/
* Don't forget any database/config changes that need to be rolled back
[root@do-stage01]$ svn log
* When rolling back, don't forget any database/config changes that need to be rolled back
Confirmed users, Bureaucrats and Sysops emeriti
1,737

edits

Navigation menu