--exclude problems

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

--exclude problems

remush
Hi all,

Having trouble excluding Outlook.pst file from a backup.

Target dir is d:/Users/Steve

And the outlook.pst file is located several sub folders below the target dir.
One of the containing folders contains spaces in its name.

I've tried the following

--exclude '**pst'
--exclude **pst
--exclude '**.pst'
--exclude **.pst

And I've had no luck, keep getting following type of error.


Fatal Error: Fatal Error: The file specification
    '"**'
cannot match any files in the base directory
    'd:/Users/Steve'


Any suggestions and comments welcome.

thanks.

_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: --exclude problems

Dominic Raferd-3
Stephen:

As you seem to be running this under Windows, please try: --exclude "**.pst"

Dominic

On 08/10/2014 07:09, Stephen Butler wrote:
Hi all,

Having trouble excluding Outlook.pst file from a backup.

Target dir is d:/Users/Steve

And the outlook.pst file is located several sub folders below the target dir.
One of the containing folders contains spaces in its name.

I've tried the following

--exclude '**pst'
--exclude **pst
--exclude '**.pst'
--exclude **.pst

And I've had no luck, keep getting following type of error.


Fatal Error: Fatal Error: The file specification
    '"**'
cannot match any files in the base directory
    'd:/Users/Steve'


Any suggestions and comments welcome.

thanks.


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: --exclude problems

Adrian Klaver-2
In reply to this post by remush
On 10/07/2014 11:09 PM, Stephen Butler wrote:

> Hi all,
>
> Having trouble excluding Outlook.pst file from a backup.
>
> Target dir is d:/Users/Steve
>
> And the outlook.pst file is located several sub folders below the target
> dir.
> One of the containing folders contains spaces in its name.
>
> I've tried the following
>
> --exclude '**pst'
> --exclude **pst
> --exclude '**.pst'
> --exclude **.pst
>
> And I've had no luck, keep getting following type of error.
>
>
> Fatal Error: Fatal Error: The file specification
>      '"**'
> cannot match any files in the base directory
>      'd:/Users/Steve'
>
>
> Any suggestions and comments welcome.

Will need to see the whole set of arguments passed to rdiff-backup to
help determine the problem.

>
> thanks.
>
>
> _______________________________________________
> rdiff-backup-users mailing list at [hidden email]
> https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
> Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
>


--
Adrian Klaver
[hidden email]

_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: --exclude problems

Dominic Raferd-3
In reply to this post by Dominic Raferd-3
Your problem I think is that bash expands the asterisks, you could try this (note the single quotes):
rdiffoptions='-v4 --print-statistics --exclude **Outlook.pst';
or try escaping the asterisks with backslashes...

To properly overcome Outlook.pst being locked, as you have found you need to create a volume snapshot by executing commands on the source machine (with admin permissions too I think). TimeDicer can do this for you, but it is a push solution and you are trying to pull (so to speak).

Regarding the problem with your windows script using vscsc, I don't think you can just connect from Windows to Linux with -c, instead you need to use something like this:
rdiff-backup.exe [...] --remote-schema "C:\Program Files\Putty\plink.exe %%s rdiff-backup --server" [...]
and of course you have to have plink.exe, which comes with Putty...

Dominic

On 09/10/2014 06:07, Stephen Butler wrote:
Hello Dominic,

Am running program on linux server. Here is the command

rdiff-backup -v4 --print-statistics [hidden email] /mnt/hda1/backup/Steve@10.1.1.123/Steve

I think I've found the problem, I'm creating a shell script that will run on my linux server that uses rdiff-backup and ssh to backup my windows clients back to the linux server.

I'm using:
On the linux server : rdiff-backup 1.2.8 ; sendEmail
On the windows client : openssh for windows from http://www.mls-software.com/opensshd.html ; rdiff-backup 1.2.8 for windows.

I had some trouble with openssh for windows for a while, but got it working with auto public keys eventually.

My script uses variables to build the rdiff-backup command.
For example I have the following variable

rdiffoptions="-v4 --print-statistics";

This is where I should have put my --exclude **Outlook.pst code. It now looks like this

rdiffoptions="-v4 --print-statistics --exclude **Outlook.pst";

I was placing the code where the variables are joined into the command string.
The following way does not work with my script
BakCommand="$rdiffbackup $rdiffoptions --exclude **Outlook.pst $UserName@$IP::$BakSrc $BakDest";

I'm not experienced with bash scripting, and am sure there is a simple rule that I broke.

Thanks to everyone who offered to help.

PS My real problem here is that if outlook is open, its Outlook.pst file will not be copied.

The closest solution i found so far is the following.
ssh into the client from the server and run vscsc in conjuction with rdiff-backup FROM the client in the following way.

Command from linux server : $ ssh [hidden email] cmd /C "vscsc -exec=d:/Users/backup.bat d:"

where d:\Users\backup.bat contains
----------------------------
@echo off
DOSDEV B: %1
rdiff-backup -v3 --print-statistics B:/Users/Steve [hidden email]
DOSDEV /D B:
----------------------------

This worked once and now does not work at all, and I get errors saying access denied.



Error ----------------------------------------------- -----------------------------------------------


$ ssh [hidden email] cmd /C "vscsc -exec=d:/Users/backup.bat D:"
[hidden email]'s password:

VSCSC.EXE 3.0 - Volume Shadow Copy Simple Client for Windows 7
This is a modified version of the original Volume Shadow Copy Client
by Microsoft (VSHADOW.EXE), originally bundled with the Microsoft SDK 7
for Windows Vista and Windows 7.


(Option: Execute binary/script after shadow creation 'd:/Users/backup.bat')
(Option: Create shadow copy set)
(Gathering writer metadata...)
(Waiting for the asynchronous operation to finish...)
Initialize writer metadata ...
Discover directly excluded components ...
- Excluding writer 'Shadow Copy Optimization Writer' since it has no selected components for restore.
- Excluding writer 'MSSearch Service Writer' since it has no selected components for restore.
Discover components that reside outside the shadow set ...
- Component '\TasksStore' from writer 'Task Scheduler Writer' is excluded from backup (it requires C:\ in the shadow set)
- Component '\WriterMetadataStore' from writer 'VSS Metadata Store Writer' is excluded from backup (it requires C:\ in the shadow set)
- Component '\PerformanceCounters' from writer 'Performance Counters Writer' is excluded from backup (it requires C:\ in the shadow set)
- Component '\System Files' from writer 'System Writer' is excluded from backup (it requires C:\ in the shadow set)
- Component '\BCD\BCD' from writer 'ASR Writer' is excluded from backup (it requires  in the shadow set)
- Component '\Registry' from writer 'Registry Writer' is excluded from backup (it requires C:\ in the shadow set)
- Component '\WMI' from writer 'WMI Writer' is excluded from backup (it requires C:\ in the shadow set)
- Component '\COM+ REGDB' from writer 'COM+ REGDB Writer' is excluded from backup (it requires C:\ in the shadow set)
Discover all excluded components ...
Discover excluded writers ...
- The writer 'Task Scheduler Writer' is now entirely excluded from the backup:
  (it does not contain any components that can be potentially included in the backup)
- The writer 'VSS Metadata Store Writer' is now entirely excluded from the backup:
  (it does not contain any components that can be potentially included in the backup)
- The writer 'Performance Counters Writer' is now entirely excluded from the backup:
  (it does not contain any components that can be potentially included in the backup)
- The writer 'System Writer' is now entirely excluded from the backup:
  (it does not contain any components that can be potentially included in the backup)
- The writer 'ASR Writer' is now entirely excluded from the backup:
  (the top-level non-selectable component '\BCD\BCD' is an excluded component)
- The writer 'Registry Writer' is now entirely excluded from the backup:
  (it does not contain any components that can be potentially included in the backup)
- The writer 'WMI Writer' is now entirely excluded from the backup:
  (it does not contain any components that can be potentially included in the backup)
- The writer 'COM+ REGDB Writer' is now entirely excluded from the backup:
  (it does not contain any components that can be potentially included in the backup)
Discover explicitly included components ...
Verifying explicitly specified writers/components ...
Select explicitly included components ...
Creating shadow set {ae85d0cf-ad04-484f-a462-95c99491be8b} ...
- Adding volume \\?\Volume{973b9136-61f5-11e3-bf92-806e6f6e6963}\ [D:\] to the shadow set...
Preparing for backup ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)
Creating the shadow (DoSnapshotSet) ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)
Shadow copy set succesfully created.

List of created shadow copies:


Querying all shadow copies with the SnapshotSetID {ae85d0cf-ad04-484f-a462-95c99491be8b} ...

* SNAPSHOT ID = {f19e2d6f-ff62-4054-9b4e-129c786c5dc2} ...
   - Shadow copy Set: {ae85d0cf-ad04-484f-a462-95c99491be8b}
   - Original count of shadow copies = 1
   - Original Volume name: \\?\Volume{973b9136-61f5-11e3-bf92-806e6f6e6963}\ [D:\]
   - Creation Time: 9/10/2014 2:49:46 PM
  B:: The operation completed successfully.
Host key verification failed.
Fatal Error: Truncated header string (problem probably originated remotely)

Couldn't start up the remote connection by executing

    ssh -C [hidden email] rdiff-backup --server

Remember that, under the default settings, rdiff-backup must be
installed in the PATH on the remote system.  See the man page for more
information on this.  This message may also be displayed if the remote
version of rdiff-backup is quite different from the local version (1.2.8).
B:: The operation completed successfully.
 - Shadow copy device name: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy4
   - Originating machine: steve
   - Service machine: steve
   - Not Exposed
   - Provider id: {b5946137-7b9f-4925-af80-51abd60b20d5}
   - Attributes:  Auto_Release Differential

- Executing command 'd:/Users/backup.bat' ...
-----------------------------------------------------
-----------------------------------------------------
- There were no writer components in this backup

Snapshot creation done.




End Error ----------------------------------------------- -----------------------------------------------

I've tryed combinations of the following.
eval ssh [hidden email] cmd /C \\\"runas /user:Steve "vscsc -exec=d:/Users/backup.bat D:"\\\"

But no luck so far.

I think I'll go with my existing script and setup a bat file on client machines that will check for active Outlook.exe process and kill it if found, to be run before the backup is scheduled. This is not an ideal solution.

Thanks,
remus

PS should this be  a new topic ?



_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki