create account

Git repository as server backup by techsup

View this thread on: hive.blogpeakd.comecency.com
· @techsup ·
Git repository as server backup
## Git repository as server backup

<center>https://fjwp.s3.amazonaws.com/blog/wp-content/uploads/2020/05/16135325/TechSupportRep.png</center>

Recently happened to a friend of mine. She had a gig on Fiverr for simple web development stuff, just some simple HTML, CSS e.t.c. One day she got a buyer request (idk what it's called on Fiverr) to help the move a local Git repo to GitHub, that's all of the information that came with the request.

It looked like a fairly simple task for a quick 10$ so she accepted it. After chatting a little with the client, it was revealed that the repo's size was over 15GBs! and that's why he was having trouble moving it. And the repo wasn't a project. The poor fella made a git repo in "/root/server-data". It had thousands of files, logs, system information, even some 3D models, for short it was a one-stop-shop.

The client wasn't aware of the 100MB limit of GitHub. After a bit of explaining to him that this task was literally impossible, the client told her to put all files over 5 MBs into .gitignore. So that's what she did. Now it was time to get rid of the previous commits that had the huge files. But there was only 1 single commit, just one.

She told him that she was gonna reset the repo since it only has one commit. The dude agreed. Little did she knew that this repo was the only copy of their server data. They had no backups, not even for a single file. So after a lovely "git reset --hard origin/main", they both were shocked.

She kept asking where the backups were to complete the job, but backups were not known to this fella (till now). The poor dude lost much of his precious data and my friend lost some stars on her profile.

I still can't figure out who is at fault here, the guy who created a repo inside a system directory, shoved 15 gigs of data in it, and made no backups, or the dumbass that straight-up ran that unholy git command## TLDR Summary:

 She told him that she was gonna reset the repo since it only has one commit. The poor dude lost much of his precious data and my friend lost some stars on her profile. The poor fella made a git repo in "/root/server-data". Little did she knew that this repo was the only copy of their server data. She kept asking where the backups were to complete the job, but backups were not known to this fella (till now). After a bit of explaining to him that this task was literally impossible, the client told her to put all files over 5 MBs into .gitignore. After chatting a little with the client, it was revealed that the repo's size was over 15GBs!
---
👍  , , , , , , , , , , , , , , , , , , , , , , , , , ,
👎  
properties (23)
authortechsup
permlinkgit-repository-as-server-backup-20210511t104455z
categorymytechlife557
json_metadata"{"image": ["https://fjwp.s3.amazonaws.com/blog/wp-content/uploads/2020/05/16135325/TechSupportRep.png"], "app": "beem/0.24.20", "tags": ["mytechlife557"]}"
created2021-05-11 10:44:54
last_update2021-05-11 10:44:54
depth0
children1
last_payout2021-05-18 10:44:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,569
author_reputation167,823,921,464
root_title"Git repository as server backup"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id103,632,809
net_rshares-163,014,238,328
author_curate_reward""
vote details (28)
@hivebuzz ·
Congratulations @techsup! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@techsup/upvoted.png?202105111252"></td><td>You received more than 500 upvotes.<br>Your next target is to reach 600 upvotes.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@techsup) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Check out the last post from @hivebuzz:**
<table><tr><td><a href="/hivebuzz/@hivebuzz/tour-update5"><img src="https://images.hive.blog/64x128/https://i.imgur.com/xecznXF.png"></a></td><td><a href="/hivebuzz/@hivebuzz/tour-update5">Hive Tour Update - Decentralized blacklists and Mutes lists</a></td></tr></table>

###### Support the HiveBuzz project. [Vote](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22109%22%5D&approve=true) for [our proposal](https://peakd.com/me/proposals/147)!
properties (22)
authorhivebuzz
permlinkhivebuzz-notify-techsup-20210511t134056000z
categorymytechlife557
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2021-05-11 13:40:54
last_update2021-05-11 13:40:54
depth1
children0
last_payout2021-05-18 13:40:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,134
author_reputation369,474,538,646,315
root_title"Git repository as server backup"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id103,635,522
net_rshares0