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

Closed
Open
Created May 24, 2013 by Administrator@rootOwner

Restore procedure shows warning message

Created by: andrewwutw

I am using GitLab 5.2.0 (6654db2c), 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?

Assignee
Assign to
Time tracking