Page 1 of 1

BackUP project

Posted: Wed Jun 17, 2009 6:08 pm
by georgmay
Hi!
I'm create(modifed your) backup module.
He is...worked =)
screen1.jpg

Code: Select all

label backup_project:
    python hide:
        import os
        import time
        import shutil
        
        
        # Tell the user we're cp...
        title(u"Backup data...")
        store.message = u"Please, don't move =)"
        ui.pausebehavior(0)
        interact()
        
    
        try:
            os.mkdir("%s_backups") % project.name
            store.message = _(u"%s_backups/") % project.name
        except:
            pass
        while True:
            bdtime = str(time.strftime("%d-%m-%Y_%H:%M",time.gmtime())) # on Win32 in NTFS and FAT a symbol ":" is a not allowd
            
            bdir = _(u"%s_backups/%s") % (project.name,bdtime)

            if not os.path.exists(bdir):
                break

            time.sleep(1)

        shutil.copytree(project.path, bdir)

        store.message = _(u"The backup was placed into %s.") % bdir

    jump tools_menu

Re: BackUP project

Posted: Thu Jun 18, 2009 12:29 am
by PyTom
I actually removed that for a reason. It doesn't make real backups, only copies of the game. And I think fake backups are worse than no backups at all.

Re: BackUP project

Posted: Fri Jun 19, 2009 7:43 am
by chronoluminaire
PyTom wrote:I actually removed that for a reason. It doesn't make real backups, only copies of the game. And I think fake backups are worse than no backups at all.
Could you unpack that slightly? In what way is a copy of a game not a "real backup"? Surely there's a scale?

Copy on the same hard drive
* Protects against: Text editor glitches, accidental deletion
* Doesn't protect against: Hard drive corruption
Copy on another HD on the machine
* Protects against: The above plus HD corruption
* Doesn't protect against: Computer catches fire
Copy on a USB stick kept in a different room
* Protects against: The above plus computer catching fire
* Doesn't protect against: Your house catching fire
Copy on a machine somewhere else on the internet

...etc. At what point is something called a "real backup"?

Re: BackUP project

Posted: Fri Jun 19, 2009 9:53 am
by PyTom
Generally, I consider a backup on the same hard drive to be a false sense of security. Hard drives fail, and having both the primary and the backup copy on the same drive is a recipe for problems. So I removed the click-and-forget button that made it easy to get this false security.

You're right, there are a range of backup options. And I think it's up to each person to decide how much their data is worth to them. But I think it's important that each person make that decision themselves, rather than having one bad choice artificially privileged over the others.

I somewhat walk the walk... I make a nightly bootable backup to a local hard drive, and upload my important files nightly to a server three time zones away. Stuff like game files are kept in version control on the server, while Ren'Py itself is in version control on launchpad.

Re: BackUP project

Posted: Sat Jun 20, 2009 1:52 am
by Adorya
Also don't forget a raid 0+1 with a duplicate hard disk from the removable backup disk buried into a security chest and sank into 3 meters reinforced concrete room with lead shell :lol:

Re: BackUP project

Posted: Sat Jun 20, 2009 11:20 am
by delta
If you just want to make a copy of a project, you don't even need the launcher. It just doesn't save any effort.

Re: BackUP project

Posted: Sat Jun 20, 2009 12:21 pm
by mugenjohncel
I suggest you stick to low tech backups... Burn copies on a re-writtable DVD or USB...

Make sure you have 2 copies either on re-writtable DVD or USB and update regularly then store on two different locations... one in home and one in office... after back-up... check data for consistency...

I lost several projects due to carelessness and data corruption... don't repeat my mistakes...

"POOF" (Disappears)

Re: BackUP project

Posted: Sat Jun 20, 2009 8:21 pm
by IceD
Obviously, it's the best way to save your important data from being lost.

Personally I use a high-capacity USB flash drive and burn things on a CD-RW/DVD-RW when there's only a need. I would also reccomend to store things on a personal ftp if you have a nice connection. You will also gain the ability to get your data from the net on almost every PC with internet connection.

Re: BackUP project

Posted: Wed Jul 01, 2009 3:54 am
by georgmay
I proposed this too.
We get the file and do with it that want to:
copied to another hard disk / flash device, upload on the FTP, etc.