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
georgmay
Regular
Posts: 131
Joined: Sun Feb 08, 2009 2:00 pm
Projects: Restriction
Location: Belarus,Minsk
Contact:

BackUP project

#1 Post 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
Returned

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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 »

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
Software > Drama • https://www.patreon.com/renpytom

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 »

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: 16096
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 »

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
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 »

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:

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

Re: BackUP project

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

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

Re: BackUP project

#7 Post 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)

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

Re: BackUP project

#8 Post 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.

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 »

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