• Backing up web dev files to a home server?
    5 replies, posted
Hey! Whats the easiest method to backup my htdocs folder to a local server every time I save a file in it? Im running on OSX and I would like my home server running Ubuntu Server to have an extra copy of my code every time I save it. Any ideas?
If you're editing directly on your live site you're doing everything really backwards from the get go. Are you using version control at all?
[QUOTE=Chizbang;39550032]Hey! Whats the easiest method to backup my htdocs folder to a local server every time I save a file in it? Im running on OSX and I would like my home server running Ubuntu Server to have an extra copy of my code every time I save it. Any ideas?[/QUOTE] You're doing it wrong. You should save files locally, test them, and THEN push them out, meaning there is nothing to backup.
[QUOTE=KmartSqrl;39550400]If you're editing directly on your live site you're doing everything really backwards from the get go. Are you using version control at all?[/QUOTE] No, no version control. I should probably get that setup. Any ideas on what I should use? Thanks! PS: I should probably note that all the files are completely local on my laptop.
Use git or hg and then do a bit of research on automating deployment with whichever one you choose. You will never look back :)
[url=https://bitbucket.org/]Bitbucket[/url] and [url=http://tfs.visualstudio.com/]Team Foundation Service[/url] provides free private Git repos for up to 5 developers.
Sorry, you need to Log In to post a reply to this thread.