Welcome to Centmin Mod Community
Become a Member

juicefs metadata backup

Discussion in 'Add Ons' started by dcg, Mar 18, 2024.

  1. dcg

    dcg Member

    Oct 17, 2015
    Florida, USA
    Local Time:
    5:25 AM
    Question on the GitHub - centminmod/centminmod-juicefs: JuiceFS file system for S3 mount storage

    Juicefs does not do automatic metadata backup on Cloudflare R2. In your setup you show a backup script to run hourly. However, you suggest putting it into the R2 object store using the juicefs mount. In this case wouldn't the ability to access the metadata be dependent upon the metadata? Thus if you have a glitch with metadata you would be unable to reconstruct the metadata backup.

    If you're doing backup outside of the automatic I feel like you would need a direct right to object store via aws-cli: something like
    aws s3 cp source s3://$cfbackupbucket --profile r2 --endpoint-url=$cfurl

    Thus you will actually have access to backup if things go wrong. Please let me know if this seems correct.

  2. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    7:25 PM
    Nginx 1.25.x
    MariaDB 10.x
    Yeah ideally you want to put JuiceFS metadata backups outside of the Cloudflare R2 JuiceFS mount i.e. a separate Cloudflare R2 storage bucket or other S3 storage.