Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Fast way to backup project?

Discussion in 'General Discussion' started by Xhitman, Apr 16, 2020.

  1. Xhitman

    Xhitman

    Joined:
    Oct 30, 2015
    Posts:
    452
    It takes 10min for winrar to compress the 170M folder.
    Is there any better method?
     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Hi,
    I doubt there's much faster alternatives than WinRAR. But you could maybe use some automated mirroring/backup software that copies files incrementally. SyncBack is one good free option. Then manually take archived snapshots of your project periodically?
     
  3. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,594
    Try 7-zip. If not faster, at least you detach yourself, from winrar dependency.
    Speed is affected not only based on compression algorithm, but also on number of files (Unity project may have tons of small files) and of course speed of drive read/write you make compression from/to.
    If you have fragmented drive, or low space, it will also affect speed of writing to.
    Don't compress directly to memory sticks. Probably will be slowest approach.
     
  4. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    Unity projects have lots of generated files which speed up builds but can be regenerated when you start a new build.

    Try exporting your project as a package you will strip away all of the unnecessary files and keep just the core files you need before compressing the package file (I think you end up with a single .unitypackage file as well).

    Ensure you test that loading the package into a new project works before trusting it as a backup.
     
    Antypodish likes this.
  5. Braineeee

    Braineeee

    Joined:
    Nov 9, 2014
    Posts:
    1,211
    WTH why a rar or zip? Select all your project folders --> right-click --> "export new asset"

    Save that somewhere you won't forget or lose... or better yet use version control whether its unity collaborate or git or mercurial.
     
    TeagansDad, Socrates and Ryiah like this.
  6. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,193
    Version control. Because when you need to make a "backup" it only processes the files that have changed since the last time you requested it. Every other solution out there is going to have to process every single file.
     
  7. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    This ^^^

    A "backup" using version control usually takes only seconds.
     
    TeagansDad, Ryiah and Kiwasi like this.
  8. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    You sleep eight hours or so a day. Why not automate the back up process and run it while you sleep?

    If you use version control throughout the day, there is no real need to do backups more often than nightly.
     
    Joe-Censored and Ryiah like this.
  9. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,594
    Agree.
    Besides continuous versioning, myself I run backups only, when major changes are planned. I.e. Unity version migration, or major feature change / implementation.
    Then I know, when I open particular backup, it just run out of the box, at selected Unity version.
    No need for packages downloading, reimport, or rebuilding whole project.
    Also, can apply password on archive, if needed. But probably few need to do that.
     
  10. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,796
    Why wouldn't you use branches for this?
     
    angrypenguin likes this.
  11. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,594
    I like having archived copy as well.
    That way I can search older individual files and content when needed, rather just lookup for changes.
     
  12. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,193
    Your version control software doesn't have a browse feature?
     
    angrypenguin likes this.
  13. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,594
    Thats ok, if I look for specific keywords, with for example nice formatted code in github.
    But if wanting look for references in scripts, or open DB files, or browse media files, its usefulness ends there for me.
     
  14. jamespaterson

    jamespaterson

    Joined:
    Jun 19, 2018
    Posts:
    391
    Disclaimer: this is not good enough for anything other than my needs. My approach is to use two physical drives in my laptop and use Windows robocopy to mirror my working folder to an exact copy on the other disk. This allows very fast copy of only the changed files. My working folder is 50gb but typically only a few hundred megs have changed. If a major change is happening then i do a complete copy to a new folder and very occasionally to a different pc in case the laptop gets stolen etc. Good luck!