Yeah, I'm a bit old-fashioned.  Hard to teach an old dog new tricks.
I'm on vista and looks like the Rsync for Windows link posted above
does not support vista.

I prefer to have a zip/tar of it all on to a sdcard and then I can
look at the date to get at what I wanted if i need to revert

I'm a Visual Source Safe guy for too many years and don't trust source
control systems as much as i trust the old-fashioned burn it all to a
disc with a different folder date  And I'm often offline when working
so just want it on a sdcard.

so any scripts would be great, if someone could oblige.  I tried an
old batch file technique, but doesnt seem to be working on vista, here
it is, probably will work on xp

it doesnt return the date in the targetfolder, instead I just get
literally %target_folder% as a folder name  And i dont know yet how to
zip it.  Once i get it working right, I'll change the target path to
my sdcard path

backup.bat:
Set mm=%DATE:~4,2%
Set dd=%DATE:~7,2%
Set yyyy=%DATE:~10,4%
Set TargetFolder = %yyyy%-%mm%-%dd%

xcopy C:\Users\mark\Documents\_web2py9_28\src\web2py_src\web2pyc
\routes.py

c:\backup\today%TargetFolder%\routes.py /E /C /I /H /Y

xcopy C:\Users\mark\Documents\_web2py9_28\src\web2py_src\web2pyc
\app.yaml

c:\backup\today%TargetFolder%\app.yam" /E /C /I /H /Y

xcopy C:\Users\mark\Documents\_web2py9_28\src\web2py_src\web2pyc
\applications

c:\backup\today%TargetFolder%\applications /E /C /I /H /Y



On Oct 1, 11:06 am, mdipierro <[email protected]> wrote:
> http://www.itefix.no/i2/node/10650
>
> On Oct 1, 12:58 pm, Julio <[email protected]> wrote:
>
>
>
> > [3] Is exactly the reason why I was asking :)
>
> > I don't know if rsync exists in the windows world, and if it does, I'd
> > suggest using it, for backup purposes, IMO can't be beaten, rsync will
> > (optionally) update only what was changed in the code so the bandwith
> > used (if you copy say, from server to server) is minimal and the time
> > of a backup could be done pretty quickly..
>
> > hth
>
> > Julio
>
> > On Oct 1, 9:23 am, Yarko Tymciurak <[email protected]> wrote:
>
> > > Argh!
>
> > > [1] - just learn / get used to using a version control system locally 
> > > (e.g.
> > > mercurial, bazaar, git);
> > > [2] - learn to make backups with that version control system (e.g. how
> > > Massimo pushes his changes out to launchpad, for example, you can do the
> > > same to push to another repository - on another disk, on another machine)
>
> > > [3] - in a pinch, learn to use rsync (with exclude lists, and -avup flags,
> > > for example)
> > > [4] - if you really, really want to use "old fashioned" distribution
> > > methods, go ahead and tar up your directory.
>
> > > On Thu, Oct 1, 2009 at 11:13 AM, Julio <[email protected]> wrote:
>
> > > > What OS plattform you using?
>
> > > > On Oct 1, 8:16 am, Web2py-SuperFan <[email protected]> wrote:
> > > > > Hi,
>
> > > > > I was wondering if there is a backup source code method built in to
> > > > > web2py or if someone has built a py script to backup all applications
> > > > > including the routes.py and app.yaml file to a timestamped tar or
> > > > > zipped folder.  If so would you mind posting the script?
>
> > > > > Basically I want to back up my work daily including all the code in
> > > > > the applications folder by running a script daily.
>
> > > > > something like:
>
> > > > > target_folder = c:\backup\todaysdate
> > > > > copy applications to target folder
> > > > > copy app.yaml to target_folder
> > > > > copy routes.py to target_folder
> > > > > zip (or tar) target_folder
>
> > > > > Thanks
> > > > > Mark- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to