Backup direct to network mount fails
I used to be able to backup to a mount of a network drive (a windows server mount with read/write access); but after upgrading (from 6* to 7-) I now get access errors:
Dumping database ...
rake aborted!
Errno::EACCES: Permission denied @ dir_s_mkdir - /opt/gitlab/embedded/service/gitlab-rails/media
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/database.rb:10:in `initialize'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:64:in `new'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:64:in `block (4 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:11:in `block (3 levels) in <top (required)>'
Tasks: TOP => gitlab:backup:db:create
it used to be able to upload the tar file perfectly file. My guess is it fails making some temporary folders.
Also, I tried to use the "Fog" add-on with the local source (https://github.com/fog/fog-local) but that doesn't work either.
Update Fiddled around and managed to get it a little further. Now it manages to make /db/database.sql.gz before complaining of compress error. :/
Dumping database ...
Dumping PostgreSQL database gitlabhq_production ... [DONE]
Compressing database ... gzip: /media/fileserver/rhisiart/backups/db/database.sql.gz: Operation not permitted
gzip: /media/fileserver/rhisiart/backups/db/database.sql.gz: Operation not permitted
[FAILED]
Backup failed: compress error
if I try to run chmod on the database.sql.gz file, I also get an operation not permitted.