Go Back   Scooter Forums > Beyond Compare 2 Discussion > Script Central
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 23-Sep-2005, 07:27 AM
flypig flypig is offline
Journeyman
 
Join Date: Sep 2005
Posts: 10
Default Why doesn\'t working

First
snapshot save-crc save-version no-filters path:\\iscsi\bak$\game_up\E\bak output:d:\bak.bcss

Then

load "d:\bak.bcss" "e:\bak"
expand all
option confirm:yes-to-all
select rt.orphan
delete rt
select lt.newer lt.older lt.orphan
copy lt->rt

But like this is does not working

why? help me!!

i want copy \\iscsi\bak$\game_up\E\bak to e:\bak

Reply With Quote
  #2  
Old 23-Sep-2005, 09:09 AM
chrroe chrroe is offline
Pooh-Bah
 
Join Date: Oct 2007
Location: Bremen, Germany
Posts: 562
Default Re: Why doesn\'t working

Hi Flypig!

Open the BC-helpfile and look for "snapshot". There it says among others:

</font><blockquote><font class="small">In Antwort auf:</font><hr />
You can load a snapshot just like any other base folder. Binary and Rules-Based content comparisons do not work on snapshots, since the files in the snapshot do not really exist.

[/quote]

In your script you try to copy files from a snapshot to another folder. This cannot work!
Try to do the same in the GUI -> it will throw an error.

Solution:
Don't use snapshots for copying or syncing, but real folders.

Snapshots are usefull when creating reports etc.


Hope this helps ...


Bye
Christoph
Reply With Quote
  #3  
Old 23-Sep-2005, 09:35 AM
flypig flypig is offline
Journeyman
 
Join Date: Sep 2005
Posts: 10
Default Re: Why doesn\'t working

can i make the docuent be copied by this order"FOLDER-REPORT"?
Reply With Quote
  #4  
Old 23-Sep-2005, 10:30 AM
Chris Chris is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 3,792
Default Re: Why doesn\'t working

If you just want to copy \\iscsi\bak$\game_up\E\bak to e:\bak, here's a script that should work:

Code:
criteria timestamp size
load \\iscsi\bak$\game_up\E\bak e:\bak
sync mirror:lt->rt
As Chrroe said, snapshot files only contain a list of the files in a directory, it doesn't contain the actual files, so it isn't possible to copy files from a snapshot.
__________________
Chris K Scooter Software
Reply With Quote
  #5  
Old 23-Sep-2005, 10:36 AM
flypig flypig is offline
Journeyman
 
Join Date: Sep 2005
Posts: 10
Default Re: Why doesn\'t working

but

criteria timestamp size
load \\iscsi\bak$\game_up\E\bak e:\bak
sync mirror:lt->rt


------------------------------------------------------
load "d:\bak.bcss" "e:\bak"
expand all
option confirm:yes-to-all
select rt.orphan
delete rt
select lt.newer lt.older lt.orphan
copy lt->rt

But this 2 kind of comparisons way time is same
Reply With Quote
  #6  
Old 23-Sep-2005, 12:03 PM
Chris Chris is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 3,792
Default Re: Why doesn\'t working

If you need to copy files from \\iscsi\bak$\game_up\E\bak to e:\bak, then
Code:
criteria timestamp size
option confirm:yes-to-all
load \\iscsi\bak$\game_up\E\bak e:\bak
sync mirror:lt->rt
will do the same thing as:
Code:
load \\iscsi\bak$\game_up\E\bak e:\bak
expand all
option confirm:yes-to-all
select rt.orphan
delete rt
select lt.newer lt.older lt.orphan
copy lt->rt
Using sync just does it in fewer lines.

If that doesn't help, please describe what you want the script to do.
__________________
Chris K Scooter Software
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 10:28 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.