יש דרך לבטל דחיסת גיבויים?

האם יש דרך לבטל דחיסת גיבויים באמצעות gzip?

כי אני יודע שאצטרך בסופו של דבר להגדיל את השרת שלי ב-Digital Ocean, אבל מכיוון שזה מכפיל את העלות החודשית, אני דוחה את זה כמה שאני יכול.

ואחרי העדכון האחרון (כשהוא עבר ל-postgres החדש), נראה שהגעתי לנקודה שבה הגיבוי שלי יכול להתבצע, אבל אז הוא נכשל בדחיסת הגיבוי באמצעות gzip. אירוני.

מכיוון שאני מעתיק את הגיבוי מהשרת ושומר אותו במקום אחר לאחר שהוא נוצר, ל-gzip אין ערך אמיתי (זמן העברה מעט ארוך יותר) ואני יכול לדחוס אותו באמצעות gzip לאחר שאקבל אותו מהשרת לאחסון לטווח ארוך. כמו כן, חלק גדול מגודל הגיבוי הוא ההעלאות, והתמונות ודברים דומים כבר יהיו דחוסים.

אבל כרגע, בגלל תהליך ה-gzip, כל הגיבוי נכשל.

אז - האם יש דרך פשוט לומר לא לדחוס את הגיבוי באמצעות gzip?

האם הרצת את הפקודה

./launcher cleanup

כדי למחוק את מסד הנתונים הישן?

דבר נוסף שניתן לעשות הוא להשתמש באחסון בלוקים כדי להוסיף שטח אחסון.

See previous request/observation:

Reduce local disk space needs by not (redundantly) gzipping backups

2 לייקים

Wait, all that is needed is to add the --gzip flag to tar and it would avoid the issue altogether?

I had not, and that indeed gets back a nice chunk of space which will resolve my immediate problem.

Switching to using the --gzip option still seems a very good idea.

But at least I’ve put off doubling my monthly bill for another six months or more, so thanks.

Block storage is pretty cheap, I think. You could use it for just backups or also uploads. I think it might be a bit tricky to see that the block storage gets used for the temporary space used to build the backup.

Can I use block storage just for the backups? If so, that might be an option to extend the time until I have to double the server unless it first creates it locally and then copies it to S3 in which case that would not help at all.

Yes. It would be the same idea as I described for the uploads. The thing I can’t remember is where the temporary files get written. I think it may be in the backup logs. You’d just make sure that you have that directory mapped to the extra storage space in your app.yml

I think you’d do something like

volumes:
  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/dashboard/log/var-log
      guest: /var/log
  - volume:
      host: /bigExtraSpace/tmp
      guest: /shared/tmp
  - volume:
      host: /bigExtraSpace/backups
      guest: /shared/backups
2 לייקים

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.