Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #4350

Closed
Open
Created Jun 19, 2013 by Administrator@rootOwner

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.

Assignee
Assign to
Time tracking