gitlab:backup process with DB password containing <
Created by: jizaymes
I'm in the process of updating from 5.1 to 5.2. In my config/database.yml, my password for the database was something like
password: "<abc123!"
When doing a backup, it would seemingly process the < as part of an IO redirection
root@gitlab:/home/git/gitlab# sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:create
Dumping database ...
sh: 1: cannot open abc123!: No such file
done
I'm not sure if this is a gitlab thing or a general railes thing but I wanted to raise the topic.
After changing the database password to remove the <, this same command completes successfully.