Extra folder for bak files

Post general topics related to Cubase Pro 9, Cubase Artist 9 and Cubase Elements 9 here.
Post Reply
mirac
New Member
Posts: 15
Joined: Wed Sep 03, 2014 7:45 pm
Contact:

Extra folder for bak files

Post by mirac » Sun Nov 05, 2017 3:07 pm

Hi there.
I was wondering, if it is possible to tell Cubase to save the auto-save (.bak) files into a seperate folder.
I always have about 20 .bak files in my project folder and I don't really like having a mess like that.

Any possible way? Thank you for your help.

User avatar
raino
Grand Senior Member
Posts: 3739
Joined: Tue Dec 21, 2010 2:41 am
Location: San Francisco
Contact:

Re: Extra folder for bak files

Post by raino » Sun Nov 05, 2017 9:26 pm

No, Cubase wants the .bak & .cpr files to be in the same folder. A .bak file is really just a .cpr file with the file extension changed. So for example the backup will want to look for its audio files in the Audio sub-folder under the backup's current location. If you move the backup then it couldn't find its audio.
rodger

Cubase Pro 10.0.40, Win10 Home, Halion6, BFD3, GPO, Komplete Ultimate 9, Waves Gold, Misc. other

i7 4771 Haswell Processor 3.5GHz, ADK LGA1150, 16GB RAM, GeForce GTX970, RME Fireface 400, 2x UAD-2

mirac
New Member
Posts: 15
Joined: Wed Sep 03, 2014 7:45 pm
Contact:

Re: Extra folder for bak files

Post by mirac » Mon Nov 06, 2017 1:49 am

It is possible in Pro Tools. When opening a backup file, it asks you to save as it in the project file and then finds all project media.
Would be fine to have this option to keep the project folder nice and clean...

User avatar
Prock
Grand Senior Member
Posts: 3814
Joined: Sat Jan 05, 2013 4:22 pm
Location: Connecticut, USA
Contact:

Re: Extra folder for bak files

Post by Prock » Mon Nov 06, 2017 2:12 am

Do you really need 20+ .bak files?
Maybe you can change the backup settings in the CB Preference menu to set a maximum amount of backups to a lower number.
As an example... I have my backups set for every 5 minutes, 5 backups max. I feel that setting covers me for approx the last half hour of editing. I still hit the backup and save button quite often though because Cubase does not perform an automatic backup while it is playing back. This shortfall has been documented and, to be honest, I am not sure if it has been fixed yet as I rarely even look at (or use) the backups. But, they are there if needed.

Regards. 8-)
PRock Studio

DAW: Cubase Pro 10.0.50, OS: Win 10 Pro x64, CPU: Intel Core i7 4700K @ 4.0GHz, RAM: 32GB/DDR4/2800MHz, Graphics: 4GB GeForce GTX 960, Mobo: MSI Z170A Gaming Pro Carbon, AI: PreSonus Studio 192 Mobile, Mic Preamp: PreSonus TubePre, Headphone Amp: PreSonus HP4, Studio Monitors: Mackie MR5, 3rd Party VSTs: GSi VB3-II, SampleTank 3, Amplitube 4, Miroslav Philharmonik 2, EZDrummer 2

https://soundcloud.com/prockstudio

dbwalter
New Member
Posts: 23
Joined: Tue Jan 04, 2011 4:30 pm
Contact:

Re: Extra folder for bak files

Post by dbwalter » Mon Nov 06, 2017 6:00 pm

Hi

I put together these applescripts (by trawling what others had done online) which will hide the .bak files.
Credit is due to someone else for the bulk of the programming, I just modified the code.

I use Keyboard Maestro to trigger the scripts in the Finder when the project folder is in focus.

There are 2 scripts I use. One to hide/show the .bak, and one to hide/show the .csh files.

Works a treat for my OCD, except when there are unusual characters in the file or folder name, such as an apostrophe.

Took ages to get it working and I'm not convinced it'll work on everyone's mac, but do let me know if you have success though!

Hide .bak

Code: Select all

--  Toggle visibility of files having a chosen extension type in a folder
--  Run script once to hide, and again to show
--  Also includes lines for setting all files visible, or all invisible.
--  BP 2012
--••••••••••••••••••••••••••••••••••••••
set targetFileExtension to ".bak" -- Set this to the extension you want to hide. ⬅🔲
--••••••••••••••••••••••••••••••••••••••
tell application "Finder" to set currentDir to (target of front Finder window) as text


-- Get the names of files in folder, hidden or not:
set targpath to quoted form of POSIX path of currentDir
set zed to do shell script "ls " & targpath -- bypassing the Finder

-- Massage shell script data into a proper list:
set oldtid to AppleScript's text item delimiters
set AppleScript's text item delimiters to "
"
set tlst to every text item of zed -- every file in folder (except UNIX invis)
set AppleScript's text item delimiters to oldtid

-- Toggle each files hidden status
repeat with n from 1 to count of tlst
	if item n of tlst contains targetFileExtension then
		set targpath to "'" & POSIX path of currentDir & item n of tlst & "'"
		do shell script "chflags hidden " & targpath
		--do shell script "chflags nohidden " & targpath
		
		-- Comment out the line above, and uncomment one of the lines below to set
		-- the visible status of everything in a folder to the same value
		
		--tell application "System Events" to set visible of disk item targpath to true
		--tell application "System Events" to set visible of disk item targpath to false
	end if
end repeat

return targpath

Hide .csh

Code: Select all

--  Toggle visibility of files having a chosen extension type in a folder
--  Run script once to hide, and again to show
--  Also includes lines for setting all files visible, or all invisible.
--  BP 2012
--••••••••••••••••••••••••••••••••••••••
set targetFileExtension to ".csh" -- Set this to the extension you want to hide. ⬅🔲
--••••••••••••••••••••••••••••••••••••••
tell application "Finder" to set currentDir to (target of front Finder window) as text


-- Get the names of files in folder, hidden or not:
set targpath to quoted form of POSIX path of currentDir
set zed to do shell script "ls " & targpath -- bypassing the Finder

-- Massage shell script data into a proper list:
set oldtid to AppleScript's text item delimiters
set AppleScript's text item delimiters to "
"
set tlst to every text item of zed -- every file in folder (except UNIX invis)
set AppleScript's text item delimiters to oldtid

-- Toggle each files hidden status
repeat with n from 1 to count of tlst
	if item n of tlst contains targetFileExtension then
		set targpath to "'" & POSIX path of currentDir & item n of tlst & "'"
		do shell script "chflags hidden " & targpath
		--do shell script "chflags nohidden " & targpath
		
		-- Comment out the line above, and uncomment one of the lines below to set
		-- the visible status of everything in a folder to the same value
		
		--tell application "System Events" to set visible of disk item targpath to true
		--tell application "System Events" to set visible of disk item targpath to false
	end if
end repeat

return targpath
CB 8.5 on Mac OS X 10.11.3
Trashcan 3GHz 8-Core
64GB RAM

remark39
New Member
Posts: 2
Joined: Wed Feb 13, 2019 12:32 am
Contact:

Re: Extra folder for bak files

Post by remark39 » Sat Mar 02, 2019 12:00 am

I think the easiest way to deal with this is to use an awesome program called "Hazel." You can set it up to automatically look for .bak files and put them in a subfolder. Here's the Hazel sorting rules I came up with...
Attachments
Create and Sort Cubase Backup Files into Subfolder.hazelrules.zip
(2.72 KiB) Downloaded 35 times

User avatar
janomix
New Member
Posts: 14
Joined: Thu Sep 22, 2011 3:36 am
Location: Chile
Contact:

Re: Extra folder for bak files

Post by janomix » Mon Jun 10, 2019 2:44 am

Hello

Here in 2019 still no specific folder for .bak files. Steinberg, please! See your big brothers like Presonus with a specific folder for backups called "HISTORY" How much difficult are for you make this simply folder? thanks.

Post Reply

Return to “General”

Who is online

Users browsing this forum: No registered users and 10 guests