Restore not restoring anything on new install
Created by: jacob-swanson
I was using 5-0-stable up and running on one PC. I setup another PC with 5-2-stable with then intention of migrating the 5-0-stable data to it. I upgraded 5-0-stable to 5-2-stable and created a backup. I then attempted to restore the backup to the newer PC, the output is below.
sh-4.2$ bundle exec rake gitlab:backup:restore RAILS_ENV=production
Unpacking backup ... done
Restoring database ...
pg_restore: too many command-line arguments (first is "/var/git/gitlab/tmp/backups/db/database.sql")
Try "pg_restore --help" for more information.
done
Restoring repositories ...
Put GitLab hooks in repositories dirs [DONE]
done
Restoring uploads ...
done
This will rebuild an authorized_keys file.
You will lose any data stored in /var/git/.ssh/authorized_keys.
Do you want to continue (yes/no)? yes
Deleting tmp directories ... done
No repositories, database entries, or authorized_keys are restored, but the backup archive looks like it was created properly on backup and extracted when the restore starts.