Skip to content

Commit 7b47568

Browse files
authored
backup: Switch to splitting zip files
Git LFS history cannot be deleted for some reason, size starts to exceed limits. Also, managing it is a hassle. Force push split zips to keep a better track and not hit limits or bandwidth issues
1 parent 5ceaa06 commit 7b47568

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

personal/mc-backup.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,11 @@ git init
1313
echo "Backups for minecraftbutcursed.com world" > README.md
1414

1515
# Zip all the world folders into a file
16-
zip -r backup.zip *
16+
zip -r -s 100m backup.zip *
1717

18-
# Do Git LFS thingies
19-
git lfs install
20-
git lfs track backup.zip
21-
git add .gitattributes
22-
git add README.md
23-
git add backup.zip
18+
# Do Git thingies
19+
cd $HOME/backups
20+
git add README.md backup*
2421
git commit -m "New Backup"
2522

2623
# Force push the file

0 commit comments

Comments
 (0)