Title: Automatic subversion update
Last modified: August 19, 2016

---

# Automatic subversion update

 *  [MuschPusch](https://wordpress.org/support/users/muschpusch/)
 * (@muschpusch)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/automatic-subversion-update/)
 * Hi folks,
 * i put all wordpress installations in one sub-directory for easy updating and 
   every night a cron job is running executing this little script:
 *     ```
       for filename in ./*
       do
       if [ ${filename:(-4):99} != ".txt" ]; then
         svn up $filename/
       fi
   
       done;
       ```
   
 * (there are some txt files i have to ignore thats why the if statement exists)
 * When a new stable release is coming i run this script:
 *     ```
       for filename in ./*
       do
       if [ ${filename:(-4):99} != ".txt" ]; then
         svn sw http://svn.automattic.com/wordpress/tags/2.6.1/ $filename/
       fi
       done;
       ```
   
 * Now thats nice but i’m a lazy one and love dry (don’t repeat yourself). So every
   time a new stable release is coming i don’t won’t to update my switch script.
 * How can the script get to know that a new version is available? (There must be
   a function in wordpress but i didn’t found it.)
 * Does wordpress also warns for plugin incompatibility?
 * Did anybody did something similar or do you know any improvements?
 * regards Volkan

The topic ‘Automatic subversion update’ is closed to new replies.

## Tags

 * [bash](https://wordpress.org/support/topic-tag/bash/)
 * [subversion](https://wordpress.org/support/topic-tag/subversion/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [MuschPusch](https://wordpress.org/support/users/muschpusch/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/automatic-subversion-update/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
