Hello,

I hope someone can shed some light on this.

I have a couple windows clients that I just starting backing up. During
initial full backups, I am getting a few errors about a Onedrive folder
(see below). I understand from my experience with other backup providers
(Barracuda) that Onedrive is doing something different from a normal folder
and it isn't easy (maybe not possible) to back up the Onedrive folder.
Probably the files aren't local to the disk anymore. In this case, nothing
important appears to  be in the Onedrive folder, so I want to exclude the
Onedrive folder from the backup fileset to prevent the errors from raising
false positives during backup.

I composed a wilddir string that in bwild matched the sample paths seen in
my error output from before I applied the exclusion and the error output
AFTER I applied the exclusion filter (see fileset below). *The thing that
is bothering me is that the wilddir exclusion string doesn't appear to be
working, but bwild matches it against the paths that reported problems from
the job before I entered the wilddir string, and the job after I entered
the wilddir string. Also, I did reload the bacula-dir. I'll go reload it
and do a test backup again, to be triple sure.*

*1. Why isn't my wilddir exclusion preventing bacula from attempting to
back up the folder and its contents?*
*2. Is there anything I can do to back up a Onedrive folder correctly,
without a need to exclude it from the backup?* It is not critical to back
up this folder in this case, but maybe in the future it would be good if I
had the knowledge to back up a Onedrive folder for a customer (or an
absolute certainty that it was not possible for some reason). I can say
that Onedrive was signed in on this PC at some point, but is not anymore
(credentials issue, probably the user changed the password). This is a
local user account. I created a file 'test.txt' in the folder, and gave it
some contents, and that file didn't throw any errors during a subsequent
full backup (just the files listed below under errors gave an error). So I
think bacula backed that test file up. Probably these files are not
actually on the system, and the test.txt file is on the system because
Onedrive isn't currently able to sync that file to the cloud and delete the
local version, leaving only the empty husk of what was once a
user-controlled file behind.

*Errors:*

03-May 17:48 delegates-cad2-fd JobId 16: Error: Read error on file
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy14/Users/Dtr02060719/OneDrive
- The Delegates/Doc1.docx. ERR=The cloud operation is not supported on
a read-only volume.

03-May 17:48 delegates-cad2-fd JobId 16:      Cannot open
"//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy14/Users/Dtr02060719/OneDrive
- The Delegates/Doc2.docx": ERR=Access to the cloud file is denied.

03-May 17:48 delegates-cad2-fd JobId 16:      Cannot open
"//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy14/Users/Dtr02060719/OneDrive
- The Delegates/Labeled Photos.docx": ERR=Access to the cloud file is
denied.


*Sample bwild output:*[gerber@td-bacula ~]$ bwild -f test-regex.txt
Enter a wild-card: //?/GLOBALROOT/Device/*/Users/*/OneDrive*
    1: 
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy12/Users/Dtr02060719/OneDrive
- The Delegates/Doc1.docx
    2: 
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy12/Users/Dtr02060719/OneDrive
- The Delegates/Doc2.docx
    3: 
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy12/Users/Dtr02060719/OneDrive
- The Delegates/Labeled Photos.docx
    4: 
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy12/Users/Dtr02060719/OneDrive/Doc1.docx
    9: 
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy14/Users/Dtr02060719/OneDrive
- The Delegates/Doc1.docx
   10: 
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy14/Users/Dtr02060719/OneDrive
- The Delegates/Doc2.docx
   11: 
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy14/Users/Dtr02060719/OneDrive
- The Delegates/Labeled Photos.docx
Enter a wild-card:

*bwild test set:*
[gerber@td-bacula ~]$ cat test-regex.txt
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy12/Users/Dtr02060719/OneDrive
- The Delegates/Doc1.docx
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy12/Users/Dtr02060719/OneDrive
- The Delegates/Doc2.docx
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy12/Users/Dtr02060719/OneDrive
- The Delegates/Labeled Photos.docx
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy12/Users/Dtr02060719/OneDrive/Doc1.docx

C:/Users/Dtr02060719/OneDrive - The Delegates/test.txt


//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy14/Users/Dtr02060719/OneDrive
- The Delegates/Doc1.docx
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy14/Users/Dtr02060719/OneDrive
- The Delegates/Doc2.docx
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy14/Users/Dtr02060719/OneDrive
- The Delegates/Labeled Photos.docx

*Fileset:*
FileSet {
  Name = "Windows-All-Drives-fs"
  IgnoreFilesetChanges = no
  Include {
    Options {
      Exclude = "yes"
      IgnoreCase= "yes"
      wilddir = "*:/Windows"
      wildfile = "*:/pagefile.sys"
      wildfile = "*:/hiberfil.sys"
      wildfile = "*:/swapfile.sys"
      wild = "*:/$Recycle.Bin"
      wild = "*:/$recycler"
      wild = "*:/Program Files (x86)"
      wild = "*:/Program Files"
      wild = "*:/recycler/"
      wild = "*:/users/all users/microsoft help/"
      wild = "*:/users/all users/microsoft/"
      wild = "*:/i386/"
      wild = "*:/msocache/"
      wilddir = "//?/GLOBALROOT/Device/*/Users/*/OneDrive*/"

     }
    Options {
      #compression=GZIP
      #compression=LZO
      compression=ZSTD
      IgnoreCase= "yes"
      Signature = "SHA512"
      OneFS = "no"
      DriveType = fixed, removable   # this means that we will not back up
cdrom, ramdisk, or remote (network) drives.
      verify = pins3
    }
    File = /
  }
}

*Full Joblog:*
td-bacula-sd JobId 16: End of medium on Volume "Synology-Local-Full-0016"
Bytes=53,687,078,176 Blocks=832,203 at 03-May-2025 17:25.
td-bacula-dir JobId 16: There are no more Jobs associated with Volume
"Synology-Local-Full-0014". Marking it purged.
td-bacula-dir JobId 16: All records pruned from Volume
"Synology-Local-Full-0014"; marking it "Purged"
td-bacula-dir JobId 16: Recycled volume "Synology-Local-Full-0014"
td-bacula-sd JobId 16: Recycled volume "Synology-Local-Full-0014" on File
device "Synology-Local-005" (/mnt/synology/bacula/Synology-Local), all
previous data lost.
td-bacula-sd JobId 16: New volume "Synology-Local-Full-0014" mounted on
device "Synology-Local-005" (/mnt/synology/bacula/Synology-Local) at
03-May-2025 17:25.
td-bacula-sd JobId 16: End of medium on Volume "Synology-Local-Full-0014"
Bytes=53,687,079,676 Blocks=832,203 at 03-May-2025 17:40.
td-bacula-dir JobId 16: There are no more Jobs associated with Volume
"Synology-Local-Full-0015". Marking it purged.
td-bacula-dir JobId 16: All records pruned from Volume
"Synology-Local-Full-0015"; marking it "Purged"
td-bacula-dir JobId 16: Recycled volume "Synology-Local-Full-0015"
td-bacula-sd JobId 16: Recycled volume "Synology-Local-Full-0015" on File
device "Synology-Local-005" (/mnt/synology/bacula/Synology-Local), all
previous data lost.
td-bacula-sd JobId 16: New volume "Synology-Local-Full-0015" mounted on
device "Synology-Local-005" (/mnt/synology/bacula/Synology-Local) at
03-May-2025 17:40.
delegates-cad2-fd JobId 16: Error: Read error on file
//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy14/Users/Dtr02060719/OneDrive
- The Delegates/Doc1.docx. ERR=The cloud operation is not supported on a
read-only volume.
delegates-cad2-fd JobId 16:      Cannot open
"//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy14/Users/Dtr02060719/OneDrive
- The Delegates/Doc2.docx": ERR=Access to the cloud file is denied.
.
delegates-cad2-fd JobId 16:      Cannot open
"//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy14/Users/Dtr02060719/OneDrive
- The Delegates/Labeled Photos.docx": ERR=Access to the cloud file is
denied.
.
delegates-cad2-fd JobId 16: VSS Writer (BackupComplete): "Task Scheduler
Writer", State: 0x1 (VSS_WS_STABLE)
delegates-cad2-fd JobId 16: VSS Writer (BackupComplete): "VSS Metadata
Store Writer", State: 0x1 (VSS_WS_STABLE)
delegates-cad2-fd JobId 16: VSS Writer (BackupComplete): "Performance
Counters Writer", State: 0x1 (VSS_WS_STABLE)
delegates-cad2-fd JobId 16: VSS Writer (BackupComplete): "System Writer",
State: 0x1 (VSS_WS_STABLE)
delegates-cad2-fd JobId 16: VSS Writer (BackupComplete): "ASR Writer",
State: 0x1 (VSS_WS_STABLE)
delegates-cad2-fd JobId 16: VSS Writer (BackupComplete): "MSSearch Service
Writer", State: 0x1 (VSS_WS_STABLE)
delegates-cad2-fd JobId 16: VSS Writer (BackupComplete): "WMI Writer",
State: 0x1 (VSS_WS_STABLE)
delegates-cad2-fd JobId 16: VSS Writer (BackupComplete): "Shadow Copy
Optimization Writer", State: 0x1 (VSS_WS_STABLE)
delegates-cad2-fd JobId 16: VSS Writer (BackupComplete): "Registry Writer",
State: 0x1 (VSS_WS_STABLE)
delegates-cad2-fd JobId 16: VSS Writer (BackupComplete): "SqlServerWriter",
State: 0x1 (VSS_WS_STABLE)
delegates-cad2-fd JobId 16: VSS Writer (BackupComplete): "COM+ REGDB
Writer", State: 0x1 (VSS_WS_STABLE)
td-bacula-sd JobId 16: Elapsed time=01:23:03, Transfer rate=27.23 M
Bytes/second
td-bacula-sd JobId 16: Sending spooled attrs to the Director. Despooling
116,076,178 bytes ...
td-bacula-dir JobId 16: Bacula td-bacula-dir 15.0.2 (21Mar24):
  Build OS:               x86_64-redhat-linux-gnu-bacula redhat (Blue
  JobId:                  16
  Job:                    Backup-delegates-cad2.2025-05-03_16.27.52_48
  Backup Level:           Full (upgraded from Incremental)
  Client:                 "delegates-cad2-fd" 15.0.2 (21Mar24) Windows 10
Pro Professional (build 19045), 64-bit,Cross-compile,Win64
  FileSet:                "Windows-All-Drives-fs" 2025-04-30 18:33:06
  Pool:                   "Synology-Local-Full" (From Job FullPool override)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "Synology-Local" (From Pool resource)
  Scheduled time:         03-May-2025 16:27:52
  Start time:             03-May-2025 16:27:58
  End time:               03-May-2025 17:51:24
  Elapsed time:           1 hour 23 mins 26 secs
  Priority:               10
  FD Files Written:       296,441
  SD Files Written:       296,441
  FD Bytes Written:       135,631,132,946 (135.6 GB)
  SD Bytes Written:       135,715,702,759 (135.7 GB)
  Rate:                   27093.7 KB/s
  Software Compression:   39.0% 1.6:1
  Comm Line Compression:  4.5% 1.0:1
  Snapshot/VSS:           yes
  Encryption:             no
  Accurate:               yes
  Volume name(s):
Synology-Local-Full-0016|Synology-Local-Full-0014|Synology-Local-Full-0015
  Volume Session Id:      11
  Volume Session Time:    1746162096
  Last Volume Bytes:      28,484,706,927 (28.48 GB)
  Non-fatal FD errors:    4
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK -- with warnings
td-bacula-dir JobId 16: Begin pruning Jobs older than 3 months 5 days .
td-bacula-dir JobId 16: No Jobs found to prune.
td-bacula-dir JobId 16: Begin pruning Files.
td-bacula-dir JobId 16: No Files found to prune.
td-bacula-dir JobId 16: End auto prune.
td-bacula-dir JobId 16: No prior or suitable Full backup found in catalog.
Doing FULL backup.
td-bacula-dir JobId 16: Start Backup JobId 16,
Job=Backup-delegates-cad2.2025-05-03_16.27.52_48
td-bacula-dir JobId 16: Connected to Storage "Synology-Local" at
td-bacula:9103 with TLS
td-bacula-dir JobId 16: Using Device "Synology-Local-005" to write.
td-bacula-dir JobId 16: Connected to Client "delegates-cad2-fd" at
delegates-cad2.local:9102 with TLS
delegates-cad2-fd JobId 16: Connected to Storage at td-bacula:9103 with TLS
td-bacula-sd JobId 16: Wrote label to prelabeled Volume
"Synology-Local-Full-0016" on File device "Synology-Local-005"
(/mnt/synology/bacula/Synology-Local)
delegates-cad2-fd JobId 16: Generate VSS snapshots. Driver="Win64 VSS"
delegates-cad2-fd JobId 16:     Snapshot mount point: C:\
delegates-cad2-fd JobId 16:     Snapshot mount point: D:\


Regards,
Robert Gerber
402-237-8692
r...@craeon.net
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to