I am on Influx Version: 1.7.4, Ubuntu 16.04
I am trying to use the command: influxd backup -portable influxdb_data_backup/
I am running this command from the terminal of ubuntu as my home user, “spvirt1”
I have the following file permission for the directory influxdb_data_backup/
spvirt1@spvirt1:/mnt/virt_drive$ ls -l
drwxrwxr-x 2 influxdb influxdb 4096 Apr 17 08:32 influxdb_data
drwxrwxr-x 2 influxdb influxdb 4096 Apr 17 08:33 influxdb_data_backup
drwx------ 2 root root 16384 Apr 17 00:07 lost+found
I am getting this error however:
spvirt1@spvirt1:/mnt/virt_drive$ influxd backup -portable influxdb_data_backup/
2019/04/17 09:09:18 backing up metastore to influxdb_data_backup/meta.00
backup: open temp file: open influxdb_data_backup/meta.00.pending: permission denied
Right now my data is all in the default directory and I was going to first back it up into this new folder and then switch the data directory from the default to my new “influxdb_data” folder. I appear to be having file permission problems. I don’t believe I should have to use sudo for this? Should I be running the command from within influxdb? I am just running it directly from the Ubuntu terminal.
Thanks for the help!