Disable cache during backup?

FAQ, getting help, user experience about PrimoCache
Post Reply
madpistol
Level 1
Level 1
Posts: 1
Joined: Fri Nov 29, 2019 9:34 pm

Disable cache during backup?

Post by madpistol »

Hello! I'm new to this forum, but I've been playing around with Primocache for over a year now. Really like the product!

Current setup is as follows:

Ryzen 7 3700x
500 GB Samsung 850 EVO SSD (C: Drive, not mapped to Primocache)
32GB DDR4 3000mhz (shared system RAM and cache)
L1: 12.4 GB
L2: 120GB SSD (PNY CS900)
Cached Array: 3 x 4TB Western Digital Hard Drives. (D: Drive)

The "wrinkle" in my system is that I have a 10TB Western Digital External Drive which takes a differential backup each day. This means that it records the changes made to my C: and D: drives once per day. Unfortunately, this also means that sometimes a massive read happens on my D: Drive, which causes a large portion of the cached data in L2 to be overwritten.

My question is, is there a way to disable Primocache while the backup is happening, and then renable once it has completed?
idefix44
Level 8
Level 8
Posts: 137
Joined: Sat Oct 26, 2013 2:13 pm

Re: Disable cache during backup?

Post by idefix44 »

User avatar
Jaga
Contributor
Contributor
Posts: 692
Joined: Sat Jan 25, 2014 1:11 am

Re: Disable cache during backup?

Post by Jaga »

Kickoff your backup with a batch (or powershell) script that pauses Primocache for the duration, then resumes it when done:

Code: Select all

rxpcc pause -a -s
timeout 10
cd "C:\Program Files\Macrium\Reflect"
Reflect.exe -e -w "C:\Users\username\Documents\Reflect\My Backup.xml" -full
timeout 10
rxpcc resume -a -s
timeout 5
rxpcc perf -a -r -s
Strela10M
Level 1
Level 1
Posts: 4
Joined: Mon Dec 30, 2019 5:39 pm

Re: Disable cache during backup?

Post by Strela10M »

Okay, thanks for the explanations, it works perfectly for me! Did the OP have good results with it as well?
user4653453
Level 4
Level 4
Posts: 30
Joined: Thu Mar 12, 2020 5:23 am

Re: Disable cache during backup?

Post by user4653453 »

any explanation how to make this work?
Post Reply