BackUP project

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
georgmay
Regular
Posts: 131
Joined: Sun Feb 08, 2009 2:00 pm
Projects: Restriction
Location: Belarus,Minsk
Contact:

BackUP project

#1 Post by georgmay » Wed Jun 17, 2009 6:08 pm

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
Returned

User avatar
PyTom
Ren'Py Creator
Posts: 15223
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: BackUP project

#2 Post by PyTom » Thu Jun 18, 2009 12:29 am

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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
chronoluminaire
Eileen-Class Veteran
Posts: 1153
Joined: Mon Jul 07, 2003 4:57 pm
Completed: Elven Relations, Cloud Fairy, When I Rule The World
Tumblr: alextfish
Skype: alextfish
Location: Cambridge, UK
Contact:

Re: BackUP project

#3 Post by chronoluminaire » Fri Jun 19, 2009 7:43 am

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"?
I released 3 VNs, many moons ago: Elven Relations (IntRenAiMo 2007), When I Rule The World (NaNoRenO 2005), and Cloud Fairy (the Cute Light & Fluffy Project, 2009).
More recently I designed the board game Steam Works (published in 2015), available from a local gaming store near you!

User avatar
PyTom
Ren'Py Creator
Posts: 15223
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: BackUP project

#4 Post by PyTom » Fri Jun 19, 2009 9:53 am

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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Adorya
Miko-Class Veteran
Posts: 541
Joined: Fri Aug 18, 2006 4:51 pm
Contact:

Re: BackUP project

#5 Post by Adorya » Sat Jun 20, 2009 1:52 am

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:

User avatar
delta
Epitome of Generic
Posts: 525
Joined: Sat Dec 22, 2007 12:59 pm
Projects: yes
Contact:

Re: BackUP project

#6 Post by delta » Sat Jun 20, 2009 11:20 am

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.
The rest is left as an exercise for the reader.

User avatar
mugenjohncel
Hentai Poofter
Posts: 2111
Joined: Sat Feb 04, 2006 11:13 pm
Organization: Studio Mugenjohncel
Location: Philippines
Contact:

Re: BackUP project

#7 Post by mugenjohncel » Sat Jun 20, 2009 12:21 pm

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)

IceD
Veteran
Posts: 433
Joined: Sun Feb 01, 2009 6:15 pm
Contact:

Re: BackUP project

#8 Post by IceD » Sat Jun 20, 2009 8:21 pm

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.

User avatar
georgmay
Regular
Posts: 131
Joined: Sun Feb 08, 2009 2:00 pm
Projects: Restriction
Location: Belarus,Minsk
Contact:

Re: BackUP project

#9 Post by georgmay » Wed Jul 01, 2009 3:54 am

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.
Returned

Post Reply

Who is online

Users browsing this forum: No registered users