...
Even though this is straightforward and easy, but it may not safer for the user mistake - it could erase all the source code on the server, so you'd better to use Version Control System like Git or SVN.
...
Even though this is straightforward and easy, but it may not safer for the user mistake - it could erase all the source code on the server, so you'd better to use Version Control System like Git or SVN.