Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Sep 2018
    Posts
    268
    Thanks
    77
    Thanked 0 Times in 0 Posts

    how to properly back up website code?

    Hey guys!

    What is the proper way to backup a website? Would I just copy and paste the htdoc folder? I did back it up that way each time but for some reason, my htdocs got deleted on my main hard drive and my website has reverted to my old css stylesheet...

  2. #2
    Supreme Master coder!
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    10,353
    Thanks
    10
    Thanked 1,189 Times in 1,179 Posts
    I think most of us use FTP (example, FileZilla) to move files back and forth between PC and website (online with a shared webhost). Therefore, my PC is always the same as my website. And I can save extra copies in other places as backups. How are you connecting or doing a "sync" with your website? FTP?

  3. #3
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    Washington
    Posts
    7,915
    Thanks
    36
    Thanked 1,058 Times in 1,054 Posts
    Back in the day when I had to do this for a few sites I used imacro to automate the duty, I forgot the name and did a google - They're a bunch of those programs now. Most have a download to do the site back up. I put this here for those that don't know about them and to say that they're good at what they do.
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.

  4. #4
    Regular Coder
    Join Date
    Sep 2018
    Posts
    268
    Thanks
    77
    Thanked 0 Times in 0 Posts
    Thanks for the suggestion! It was strange because for some reason, my htdocs folder got deleted by itself but luckily I got it back from the trashbin...Can I just copy and paste the htdocs folder?

  5. #5
    Supreme Master coder!
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    10,353
    Thanks
    10
    Thanked 1,189 Times in 1,179 Posts
    How are you seeing the htdocs folder? Are you using your webhost's cpanel? Or is this on your own server located at your house?


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •