This is an old revision of the document!


backing up repository

  • you have a myproject directory containing the .git repository, and would like to back up the repository contents
  • clone your project as a “mirror”
    cd /backup/destination
    git clone --no-hardlinks --mirror /path/to/myproject backupfoldername
  • work, work, work
  • commit inside myproject
  • time to backup…go to the backup directory and “fetch” the project
    cd /backup/destination/backupfoldername
    git fetch
  • don't use rsync, because a commit or other action could be in progress
  • docs/git/backing_up_repository.1256017591.txt.gz
  • Last modified: 2009/10/19 23:46
  • by billh