Svn update automation

I often go to the server, switching to a specific directory and run svn-update

I think that there is probably a very simple way to automate this, so I can just specify the subdirectory when the script starts, and it will go through SSH, cd into the desired directory and run svn-update.

Is this a job for capistrano or can it execute a simple bash script?

+5
source share
3 answers

Sounds like a job to cron . Run crontab and add this entry:

#min hour date month day command
 0   *    *    *     *   ssh user@host '(cd path/to/working/copy; svn update)' 

ssh- ssh-agent, .

EDIT ( ):

, ,

ssh user@host crontab -e

​​:

#min hour date month day command
 0   *    *    *     *   (cd path/to/working/copy; svn update)

, cron.

+5

, , ?

, CruiseControl Hudson, (, svn commit)?

svn, , , , ( ).

, .

+2

simple bash script , svn update /etc/profile.

bash login script.

(.. ), , ssh , , , /DEV/.

0
source

All Articles