Solved

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

Posted on 2013-05-19
6
332 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:Brad Nelson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 
LVL 110

Expert Comment

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

Author Comment

by:Brad Nelson
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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

688 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