christianspecht / scm-backup

Makes offline backups of your cloud hosted source code repositories
https://scm-backup.org/
GNU General Public License v3.0
58 stars 20 forks source link

Add option to compress repository after download #71

Closed robpinheiro closed 1 year ago

robpinheiro commented 1 year ago

Hello, I would like to know if it would be possible to implement the option to compress the repository after downloading. Thanks.

christianspecht commented 1 year ago

I suppose by "compressing" you mean creating a .zip file or something like that?
If yes, IMO it doesn't make sense.

It wouldn't be much effort to zip each repository after downloading, but the next time SCM Backup runs, it would have to unzip it again, in order to pull/fetch again with Git....and then zip it again. That would significantly increase the time one SCM Backup run takes...the larger your repositories are, the longer it will take.

Plus, Git repositories seem to be pretty compressed anyway. I'm using SCM Backup to backup my GitHub account including the SCM Backup repository. I just tried to compress the backed up repository with 7-Zip:

So IMO it's not worth the effort to save a few kilobytes.