Re: cp * except .svn directories



Hi Kevin,

On Thu, 03 Aug 2006 01:56:12 +0900, Kevin Ballard wrote:

It's because #exec replaces the current process with the new one. You
need to fork and exec in the child (and in the parent, wait until the
child is done before continuing).

BTW, you might want to look into `svn export`, see if that's usable. The
entire point of that command is to create a copy of the tree without any
of the svn metadata (i.e. no .svn folders).

Thanks,
I was aware of 'export' but wanted to do this as a little ruby experiment.
Finally got what I was after which was to backup localhost as a
timestamped folder (eg www03072230) and the includes folder, then delete
everything and copy over the repos.

If all goes well, which it appears to be, I'll work on copying the local
development over to my live host next.


cheers,


--
Mark
.



Relevant Pages

  • Re: Tree, Folder, and document design issues
    ... I'm redesigning a document manager tree notes type app. ... So, in the above, only a Folder can have child Notes and child ...
    (borland.public.delphi.non-technical)
  • Tree, Folder, and document design issues
    ... I'm redesigning a document manager tree notes type app. ... So, in the above, only a Folder can have child Notes and child ...
    (borland.public.delphi.non-technical)
  • Re: +AFs-OT+AF0- Working with version control
    ... duplicated the entire working folder; ... years and can't believe how much better things are now I've switched to SVN. ... you are ready for the first deployment. ... apply all the changesets in the staging branch to the deployment branch ...
    (php.general)
  • Re: SVN: Wheres the decent client?
    ... I don't know what SVNX is, but I've never had any problem typing "svn ... shop_func.php svn: Commit failed: ... None of the environment variables SVN_EDITOR, ... If I can say 'right click on the folder, select 'update', do your ...
    (uk.comp.sys.mac)
  • Source Control - Again
    ... This involved about 100 MS Word docs, a bunch of source files and an Eclipse ... all of the hidden .svn folders were also copied. ... The main project .metedata folder took 30 minutes to add to SVN. ... We have multiple gigabytes of projects in VSS files and ...
    (comp.arch.embedded)