Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

gitlab backup script

RaymiiRaymii Member
edited July 2012 in General

I'm writing a gitlab backup script. Now it backs up the gitlab database, the gitlab app directory (/home/gitlab) and the /home/git directory. Do I forget something?

Comments

  • AsadAsad Member

    Have you asked the developers? Other users here might not use GitLab.

    Never heard of it before, checked it out an it looks pretty cool so thanks OP :P Currently use Gitorious for my private Git projects, but that sucks.

  • RaymiiRaymii Member

    I know @djvdorp mentioned it here, but that would be a good idea to do ass well too. LET is just hardcoded in my fingers, just like vim...

  • AsadAsad Member

    The real pros use nano!

  • I think you got it all covered when i read you list Raymii ^^

  • RaymiiRaymii Member

    @AsadHaider Real Pro's use tools that gets work finished at the end of the day. Some even use stone tablets...

    @djvdorp the backup runs for about 30 min, and gives a 6 gb backup... Is that OK?

  • RaymiiRaymii Member
    edited July 2012
    
    root@gitlab:~/gitbackup# ./gitlabbackup.sh  
    gitlab backup 0.1.6 started on fd002 at 11:38:46 26.07.12 (1343295526)
    --- Starting MySQL Dump ---
    Ran: 1 seconds
    --- Finished MySQL Dump ---
    --- Starting Gitlab appdir copy ---
    Ran: 577 seconds
    --- Finished Gitlab appdir copy ---
    --- Starting Git homedir copy ---
    Ran: 1112 seconds
    --- Finished Git homedir copy ---
    --- Starting backup archive creation ---
    tar: Removing leading `/' from member names
    MD5 of tar file: 183d13432442343292488e86f8eb  /home/admin/gitlabbackup/26.07.12.tar.gz
    Ran: 2021 seconds
    --- Finished backup archive creation ---
    --- Starting Cleanup ---
    --- Finished Cleanup ---
    gitlab backup 0.1.6 ended on fd002 at 12:12:35 26.07.12 (1343297555)
    Script ran for 2029 seconds or 33 minutes. Have a nice day.
    
  • @Raymii I dont know, how much do you store in it? And how big are the directories itself (Im at the office so dont have access to my gitlab server now)

  • RaymiiRaymii Member

    @djvdorp

    ~$ du -h --summarize /home/git
    2.4G    /home/git
    
    ---
    
    ~$ du -h --summarize /home/gitlabhq/
    3.9G    /home/gitlabhq/
    
    
  • @Raymii I think its fine then :)

  • happelhappel Member

    @Raymii said: 3.9G /home/gitlabhq/

    Wow.. My gitlab app directory is only 265M...

  • flyfly Member

    @raymii you should write a guide on how to get gitlab set up

  • djvdorpdjvdorp Member
    edited July 2012

    @fly said: @raymii you should write a guide on how to get gitlab set up

    https://github.com/gitlabhq/gitlabhq/blob/stable/doc/installation.md
    worked great for me

  • RaymiiRaymii Member

    @fly I've not setup this beast repo, so I wouldn't know that, maybe on their website...

    @happel How many projects do you have?

  • happelhappel Member

    @raymii maybe a dozen relatively small php projects. But the repositories are stored in the /home/git directory if I'm not mistaken.

  • RaymiiRaymii Member

    This thing has about 250 projects in it...

Sign In or Register to comment.