Page 1 of 1

How to consolidate 3 backupto-s, or suppress confirm dlgs?

Posted: 15 Jan 2015 17:54
by aliteralmind
The following works fine.

Code: Select all

:: $srcDir = "Q:\scripts_and_notes\"; $destDir = "C:\data_jeffy\app_settings\q_scripts_and_notes\"; backupto $destDir, $srcDir."*.sh", 2, , , 0; backupto $destDir, $srcDir."*.txt", 2, , , 0; backupto $destDir, $srcDir."*.sublime-project", 2, , , 0;
However, it pops up three of these dialogs, stating what each of the backupto-s just did:

Image

I expected these dialogs to *not* be displayed, since I've set the sixth parameter, which is "pop_stats", to 0.

How do I (a) suppress these dialogs and/or (b) consolidate these three backupto-s into one command? The documentation talks about wildcards, but I need to backup files with three different extensions.

Re: How to consolidate 3 backupto-s, or suppress confirm dlg

Posted: 15 Jan 2015 19:13
by bdeshi
(a)
aliteralmind wrote:I expected these dialogs to *not* be displayed, since I've set the sixth parameter, which is "pop_stats", to 0.
you need to set "show_progress" to 0.

(b)
separate source item patterns with |. Pseudocode follows.

Code: Select all

  $srcDir = "Q:\scripts_and_notes"; <=note missing \
  backupto $destDir, "$srcDir\*.sh|$srcDir\*.txt|...",....

Re: How to consolidate 3 backupto-s, or suppress confirm dlg

Posted: 15 Jan 2015 21:09
by aliteralmind
Darn. I thought I understood the meaning of the other column...which contradicts with the fact that I posted this question at all.

Good to know about the "|".

Thanks.

Code: Select all

:: $srcDir = "Q:\scripts_and_notes\"; 
   $destDir = "C:\data_jeffy\app_settings\q_scripts_and_notes\";  
   $starSh = $srcDir."*.sh";
   $starTxt = $srcDir."*.txt";
   $starSublimePrj = $srcDir."*.sublime-project";
   $allFiles = $starSh."|".$starTxt."|".$starSublimePrj;
   backupto $destDir, $allFiles, 2, , , 0, , , 1;

Re: How to consolidate 3 backupto-s, or suppress confirm dlg

Posted: 15 Jan 2015 21:26
by aliteralmind
Actually, what I'm trying to do doesn't seem to be possible :(

What I want is for the in-progress dialog to display, and then automatically close when it's done. It seems only these options are possible:

- in-progress dialog, which stays open
- no in-progress dialog, but a summary dialog when it's done.
- no dialog at all.

The reason I want this, is because I'm doing stuff on an sftp drive, which is very slow. I want to be able to trigger it, then switch to another application as it's working. I know it's done, by seeing the in-progress dialog disappear in the taskbar.

Re: How to consolidate 3 backupto-s, or suppress confirm dlg

Posted: 15 Jan 2015 22:13
by aliteralmind
It seems logical, if you request an in-progress dialog, but not a summary dialog, that the in-progress dialog should disappear when done.

Re: How to consolidate 3 backupto-s, or suppress confirm dlg

Posted: 16 Jan 2015 06:14
by bdeshi
Yes, the progress dialog should take into account the settings (especially [ ] Keep progress dlg open) @ Config->File Ops->Backup Ops->Config
All the more reasonable since other parameters already follow related global settings by default.

Re: How to consolidate 3 backupto-s, or suppress confirm dlg

Posted: 16 Jan 2015 08:57
by admin
FYI, see change log:

Code: Select all

v10.00.0008 - 2011-07-14 15:42
    * SC backupto: Any progress dialog will now be strictly modal, 
      otherwise the correct sequence of script statements can not be 
      ensured.
    * SC backupto: Any progress dialog will be kept open, so "Keep 
      progress dialog open" (a setting that's not available as argument) 
      is internally ON when the progress dialog is popped via SC 
      backupto.
Unfortunately I have not made any internal notes about why I did this. (And no time to think about it ATM.)