Restore procedure shows warning message
Created by: andrewwutw
I am using GitLab 5.2.0 (6654db2), Ubuntu 12.10, PostgreSQL.
I tried to backup/restore GitLab data by following instructions from
https://github.com/gitlabhq/gitlabhq/blob/master/doc/raketasks/backup_restore.md
First I run:
cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
Output is:
Dumping database ...
done
Dumping repositories ...
* gitignore ... [DONE]
done
Dumping uploads ...
done
Creating backup archive: 1369395110_gitlab_backup.tar ... done
Deleting tmp directories ... done
Deleting old backups ... skipping
It seems ok, backup file is created. Then I tried to restore it:
sudo -u git -H bundle exec rake gitlab:backup:restore RAILS_ENV=production
Output is:
Unpacking backup ... done
Restoring database ...
pg_restore: too many command-line arguments (first is "/home/git/gitlab/tmp/back
ups/db/database.sql")
Try "pg_restore --help" for more information.
done
Restoring repositories ...
gitignore ... [DONE]
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 /home/git/.ssh/authorized_keys.
Do you want to continue (yes/no)? yes
Deleting tmp directories ... done
It shows warning message pg_restore: too many command-line arguments
. Is it correct?