How to change the location of backup files?

   8061   5   2
User Avatar
Member
2 posts
Joined: 5月 2013
Offline
Hi all,

For our pipeline needed, I need to change the location of houdini backup files.

Anyone can point me the way to do this?

Thanks!
User Avatar
Member
392 posts
Joined: 11月 2008
Offline
From the documentation:
https://www.sidefx.com/docs/houdini/ref/env [www.sidefx.com]

HOUDINI_BACKUP_DIR

This is the directory used to store the backed-up hip files when the “Numbered Backup” save option is set.

HOUDINI_BACKUP_FILENAME

A template for the filename used for file backups when the “Numbered Backup” save option is set. Two variables are required: $BASENAME, which will be replaced by the name of the file being saved without its extension; and $N, which is replaced by the backup number. $N can be followed by a single digit which is interpreted as the number of digits to be used in the backup number; numbers with fewer digits than this will be padded with zeroes. Default value is $BASENAME_bak$N.

A subdirectory path may be included, but only $BASENAME will be replaced in this part of the template. This may be used to group all the backups for a given file into a subdirectory (e.g. $BASENAME/$BASENAME_bak$N).
User Avatar
Member
2 posts
Joined: 5月 2013
Offline
Hi pezetko,

That's what I'm looking for!

Thanks very much

Cheers,

Huan
User Avatar
Member
518 posts
Joined: 12月 2013
Offline
Hi all,
This is super handy but I can't seem to get the files to go into a sub folder based on the scene name.
The docs give this as an example -
$BASENAME/$BASENAME_auto$N
But I keep getting this error -


What am I doing wrong there?
Thanks
Pete
Edited by peteski - 2022年3月28日 21:01:19

Attachments:
Screen Shot 2022-03-29 at 12.00.08 pm.png (411.4 KB)

User Avatar
Member
3 posts
Joined: 4月 2020
Offline
In the houdini.env you need to escape the $ with a \ in front.

This works for me (saving backups into subfolders):

HOUDINI_BACKUP_DIR = "D:/tmp/Houdini_Backup"
HOUDINI_BACKUP_FILENAME = \$BASENAME/\$BASENAME_bak\$N
Edited by jamclaw - 2023年10月4日 01:35:02
User Avatar
Member
518 posts
Joined: 12月 2013
Offline
Cool! Thanks!
  • Quick Links