We are using open source version cockroach 20.2.5, We want to change the backup directory path, present nodelocal is taking cockroach data directory for back as well, Could you please help me in how to change backup directory?

We are using open source version cockroach 20.2.5, We want to change the backup directory path, present nodelocal is taking cockroach data directory for back as well, Could you please help me in how to change backup directory?

Hello. I’m afraid it isn’t possible to change the directory path for a backup. What is possible is creating a symlink within the backup directory to another location. You could also change the backup location to use a file server over http or using cloud storage.

1 Like

@mbhargav ,

Need to set flag –external-io-dir=/var/lib/cockroach/backup/ while starting the cockroachdb service .

Thanks,
RG