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
  • #3977

Closed
Open
Created May 17, 2013 by Administrator@rootOwner

Restore not working on 5.1

Created by: zbindenren

I tried a restore and I get the following output:

 Unpacking backup ... done
 Restoring database ... 
 pg_restore: [archiver] could not open input file "gitlabhq_production": No such file or directory
 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 /home/git/.ssh/authorized_keys.
 Do you want to continue (yes/no)? yes

 Deleting tmp directories ... done

After the restore, the DB is empty and no repositories exist in the repositories directory.

The entries of the backup are:

tar -tvf 1368794238_gitlab_backup.tar 
drwxr-xr-x git/git           0 2013-05-17 14:37 repositories/
drwxr-xr-x git/git           0 2013-05-17 14:37 repositories/user/
-rw-r--r-- git/git       16974 2013-05-17 14:37 repositories/user/repo1.bundle
-rw-r--r-- git/git       23747 2013-05-17 14:37 repositories/user/repo2.bundle
drwxr-xr-x git/git           0 2013-05-17 14:37 db/
-rw-r--r-- git/git       68002 2013-05-17 14:37 db/database.sql
drwxr-xr-x git/git           0 2013-05-17 14:37 uploads/
Assignee
Assign to
Time tracking