I have created a backup dataset for automated backup on servers of HTML and SQL yet I have hit a bit of a brickwall with permissions moving files over.
For some reason this has only affected the HTML backup, the SQL backup ran fine, this mysqldumps each database then gzips it afterwards. The HTML backup create tar files of each HTML directory but then failed on gzip with "Operation not permitted" I tried changing this to tar / gzip into a temp directory and moving to the backup mount, this also failed but creates a 0 byte file.
Manually I can create / put data / delete files OK, but as soon as I try to copy backup file with same name I get "Operation not permitted"
* HXXL is actually HTML, just replaced afterwards to stop forum trying to insert HTML tags
I have the dataset owner set as 'dan' and the NFS mount maproot is also set as 'dan'
/mnt/backup is the FreeNAS NFS mount
Can anyone offer any pointers on whats going on?
For some reason this has only affected the HTML backup, the SQL backup ran fine, this mysqldumps each database then gzips it afterwards. The HTML backup create tar files of each HTML directory but then failed on gzip with "Operation not permitted" I tried changing this to tar / gzip into a temp directory and moving to the backup mount, this also failed but creates a 0 byte file.
Manually I can create / put data / delete files OK, but as soon as I try to copy backup file with same name I get "Operation not permitted"
Code:
root@hqops:~# mv /tmp/backup/\[2019-05-12\]\[HXXL\]test.backup.tar.gz /mnt/backup/HQOps.d8ff.net/2019-05/ mv: cannot create regular file '/mnt/backup/HQOps.d8ff.net/2019-05/[2019-05-12][HXXL]test.backup.tar.gz': Operation not permitted root@hqops:~# ls -al /mnt/backup/HQOps.d8ff.net/2019-05/\[2019-05-12\]\[HXXL\]test.backup.tar.gz -rwxrwxr-x 1 dan root 0 May 12 10:17 '/mnt/backup/HQOps.d8ff.net/2019-05/[2019-05-12][HXXL]test.backup.tar.gz' root@hqops:~# rm /mnt/backup/HQOps.d8ff.net/2019-05/\[2019-05-12\]\[HXXL\]test.backup.tar.gz root@hqops:~# touch /mnt/backup/HQOps.d8ff.net/2019-05/\[2019-05-12\]\[HXXL\]test.backup.tar.gz root@hqops:~# echo blah blah > /mnt/backup/HQOps.d8ff.net/2019-05/\[2019-05-12\]\[HXXL\]test.backup.tar.gz root@hqops:~# ls -al /mnt/backup/HQOps.d8ff.net/2019-05/\[2019-05-12\]\[HXXL\]test.backup.tar.gz -rwxrwxr-x 1 dan root 10 May 12 10:18 '/mnt/backup/HQOps.d8ff.net/2019-05/[2019-05-12][HXXL]test.backup.tar.gz' root@hqops:~# cat /mnt/backup/HQOps.d8ff.net/2019-05/\[2019-05-12\]\[HXXL\]test.backup.tar.gz blah blah root@hqops:~# rm /mnt/backup/HQOps.d8ff.net/2019-05/\[2019-05-12\]\[HXXL\]test.backup.tar.gz root@hqops:~# mv /tmp/backup/\[2019-05-12\]\[HXXL\]test.backup.tar.gz /mnt/backup/HQOps.d8ff.net/2019-05/ mv: cannot create regular file '/mnt/backup/HQOps.d8ff.net/2019-05/[2019-05-12][HXXL]test.backup.tar.gz': Operation not permitted root@hqops:~#
* HXXL is actually HTML, just replaced afterwards to stop forum trying to insert HTML tags
I have the dataset owner set as 'dan' and the NFS mount maproot is also set as 'dan'
/mnt/backup is the FreeNAS NFS mount
Can anyone offer any pointers on whats going on?