Solved

if i upload a file, can server auto save a revision?

Posted on 2013-05-19
6
323 Views
Last Modified: 2013-06-08
Hi guys,
Im updating some code on a custom program i've been developing, the project is getting large and out of hand so i need to make sure anytime i make a change to a php file, that a revision is getting saved so i can revert back to a earlier copy if needed.

I typically use a php editor like editplus or rapid php, but i would be willing to change to something if it means i have to.

So basically any time i make a change to the file, id like a saved copy, is there any server-side software that does this automatically?
0
Comment
Question by:GTechForce
6 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39179815
I never heard of that.  I save all my backups on my own computer.  Don't rely on the server to be the master copy.  Too many questions here have been from people who lost their web sites because the server had a problem and they did not have a copy on their own computer.
0
 
LVL 14

Expert Comment

by:quizwedge
ID: 39180261
While it won't automatically save, I'd recommend checking out the free plan at https://bitbucket.org and using either GIT or Mercurial. The idea is that you do some work and check in your changes. It then keeps track of all of those changes and you can roll back at any time. You can even branch your code to work on something experimental such as a new version and retain access to the launched version for bug fixes.
0
 
LVL 14

Expert Comment

by:quizwedge
ID: 39180265
Quick follow up. With both GIT and Mercurial you'll have both a local copy of all changes and the bitbucket copy.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 109

Expert Comment

by:Ray Paseur
ID: 39180696
Maybe SVN or GitHub would be helpful.
0
 

Author Comment

by:GTechForce
ID: 39203150
Thanks, I ended up using Github and thier client.

The only thing I wish it would do is sync to our production FTP server when i sync'd to github. Anyone know a way to do this?
0
 
LVL 14

Accepted Solution

by:
quizwedge earned 500 total points
ID: 39203210
Github works, I just prefer bitbucket since it's free for private repositories.

To sync with your FTP server, you can look into Continuous Integration, such as setting up a Jenkins server. http://jenkins-ci.org/ 

I haven't set one up before. I've just been a user. The workflow is that you check in and push your code in Git. Your Jenkins server gets the files from Git and pushes them to your FTP server.

Your Jenkins server can do other things too such as minify code or run tests.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question