Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Backing up a C# project

Backing up a C# project

Scheduled Pinned Locked Moved C#
csharp
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Brian_TheLion
    wrote on last edited by
    #1

    When I edit video recording I backup the video project every time I make a few changes that way if something does not work then I can go back to a previous project backup eg Gardens1.veg Gardens2.veg etc I am hoping that you can do the same when writing a C# program but can't see any way of doing this. I normally select 'save all' so that everything is saved. Brian

    B OriginalGriffO 2 Replies Last reply
    0
    • B Brian_TheLion

      When I edit video recording I backup the video project every time I make a few changes that way if something does not work then I can go back to a previous project backup eg Gardens1.veg Gardens2.veg etc I am hoping that you can do the same when writing a C# program but can't see any way of doing this. I normally select 'save all' so that everything is saved. Brian

      B Offline
      B Offline
      BillWoodruff
      wrote on last edited by
      #2

      Welcome to the tribe of devs who need version control/back-up software ! imho, it's a strange "empty" that Visual Studio doesn't provide a simple menu command to back-up an entire project/solution ... for the single developer. This post gives a useful overview of what you might look into to determine what you need: [^]. I sometimes put a shortcut to the current VS solution folder on the desktop, and then duplicate (the contents of) that as necessary: not elegant ! I did create my own solution for this (just code, not a VS extension), but, it was quirky, and I had to use try/catch to avoid access errors for certain locked VS run-time hidden files: I stopped using it :)

      «Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

      1 Reply Last reply
      0
      • B Brian_TheLion

        When I edit video recording I backup the video project every time I make a few changes that way if something does not work then I can go back to a previous project backup eg Gardens1.veg Gardens2.veg etc I am hoping that you can do the same when writing a C# program but can't see any way of doing this. I normally select 'save all' so that everything is saved. Brian

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        Backups and version control are very different beasties! Version control is pretty easy with all .NET languages - GIT support is built in to Visual Studio these days, and that allows you to use a local of remote (like BitBucket or GitHub - the latter is better IMHO) and that provides you with full source control. Google "Visual Studio GitHub" and you will find loads of explanations. Backups aren't normally "single project" related, but that's easy enough to do. The only warning I would give is that a backup regimen should be a bit more complex than source control simply because backed up data should be "air gapped" to prevent corruption when things go seriously wrong! Have a think about exactly what you are trying to achieve: I use source control and backups and it takes both care and thought (as well as time) to get it right. And always, always, always: do a trial restore of any mechanism to make sure that you can use the data before you assume it's right! There is nothing worse than being confident in your backups and finding out they are rubbish exactly when you need them to be perfect! See here: Don't Hit Save - The Screwup[^]

        Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        B B 2 Replies Last reply
        0
        • OriginalGriffO OriginalGriff

          Backups and version control are very different beasties! Version control is pretty easy with all .NET languages - GIT support is built in to Visual Studio these days, and that allows you to use a local of remote (like BitBucket or GitHub - the latter is better IMHO) and that provides you with full source control. Google "Visual Studio GitHub" and you will find loads of explanations. Backups aren't normally "single project" related, but that's easy enough to do. The only warning I would give is that a backup regimen should be a bit more complex than source control simply because backed up data should be "air gapped" to prevent corruption when things go seriously wrong! Have a think about exactly what you are trying to achieve: I use source control and backups and it takes both care and thought (as well as time) to get it right. And always, always, always: do a trial restore of any mechanism to make sure that you can use the data before you assume it's right! There is nothing worse than being confident in your backups and finding out they are rubbish exactly when you need them to be perfect! See here: Don't Hit Save - The Screwup[^]

          Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

          B Offline
          B Offline
          BillWoodruff
          wrote on last edited by
          #4

          Hi, I'm curious about what you use for back-ups ... assuming you are automating that in some way: fyi: I interpret "version control" as implying some form of back-up/archiving. cheers, Bill

          «Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

          OriginalGriffO 1 Reply Last reply
          0
          • B BillWoodruff

            Hi, I'm curious about what you use for back-ups ... assuming you are automating that in some way: fyi: I interpret "version control" as implying some form of back-up/archiving. cheers, Bill

            «Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #5

            AOMEI Backupper and a bunch of 4TB USB drives! Version control shouldn't be seen as a backup - or at least not a "primary" backup - the data is out of your control (unless it's a local hub and then it's not air gapped and probably on the same machine). And we've probably all heard "Git lost the lot!" sob stories, though this can help: Oh, shit, git![^] What I do is use Git for source control, and archive "released to client" software to air gapped RAID 5 backups which live in a friends garage when I'm not using them, as well as "normal" regular backups of my whole system as AOMEI images. And I copy whole folders to my 16TB RAID 5 NAS when I'm feeling especially nervous about making changes. I think the most work I've completely lost in the last 20 years is about ten minutes. It's not paranoia if HDD's really are out to get you! :laugh:

            Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            B 1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              AOMEI Backupper and a bunch of 4TB USB drives! Version control shouldn't be seen as a backup - or at least not a "primary" backup - the data is out of your control (unless it's a local hub and then it's not air gapped and probably on the same machine). And we've probably all heard "Git lost the lot!" sob stories, though this can help: Oh, shit, git![^] What I do is use Git for source control, and archive "released to client" software to air gapped RAID 5 backups which live in a friends garage when I'm not using them, as well as "normal" regular backups of my whole system as AOMEI images. And I copy whole folders to my 16TB RAID 5 NAS when I'm feeling especially nervous about making changes. I think the most work I've completely lost in the last 20 years is about ten minutes. It's not paranoia if HDD's really are out to get you! :laugh:

              Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

              B Offline
              B Offline
              BillWoodruff
              wrote on last edited by
              #6

              That's enlightening, thanks ! p.s. could you please send me one of those 16TB Raid 5 critters asap ?

              «Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

              1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                Backups and version control are very different beasties! Version control is pretty easy with all .NET languages - GIT support is built in to Visual Studio these days, and that allows you to use a local of remote (like BitBucket or GitHub - the latter is better IMHO) and that provides you with full source control. Google "Visual Studio GitHub" and you will find loads of explanations. Backups aren't normally "single project" related, but that's easy enough to do. The only warning I would give is that a backup regimen should be a bit more complex than source control simply because backed up data should be "air gapped" to prevent corruption when things go seriously wrong! Have a think about exactly what you are trying to achieve: I use source control and backups and it takes both care and thought (as well as time) to get it right. And always, always, always: do a trial restore of any mechanism to make sure that you can use the data before you assume it's right! There is nothing worse than being confident in your backups and finding out they are rubbish exactly when you need them to be perfect! See here: Don't Hit Save - The Screwup[^]

                Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                B Offline
                B Offline
                Brian_TheLion
                wrote on last edited by
                #7

                Thanks for your reply and the replies of others to my question on backing up C# code. I'm thinking that it might be easier to zip up the project folder for the project that I'm working on and add version numbers to the zip file. If something does go wrong then am I able to restore the zip file or does Visual NET write information elsewhere other than in the project folder? Brian

                D 1 Reply Last reply
                0
                • B Brian_TheLion

                  Thanks for your reply and the replies of others to my question on backing up C# code. I'm thinking that it might be easier to zip up the project folder for the project that I'm working on and add version numbers to the zip file. If something does go wrong then am I able to restore the zip file or does Visual NET write information elsewhere other than in the project folder? Brian

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  So long as you're not doing anything with source control, everything is in the project folder.

                  Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
                  Dave Kreskowiak

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups