SAVE AS PDF
Lyve Cloud Object Storage Resources Guide 
Lyve Cloud Object Storage Resources Guide 

Was this content helpful?

Restic

Restic is validated for use with Lyve Cloud Object Storage.

Configure Restic

To configure Restic for use with Lyve Cloud:

  1. Export the variables:
  • export RESTIC_REPOSITORY="s3:s3.<region>.sv15.lyve.seagate.com/<bucket>"
  • export AWS_ACCESS_KEY_ID="<access-key>"
  • export AWS_SECRET_ACCESS_KEY="<secret-key>"

where:

  • <region> is the appropriate Lyve Cloud region, for example, us-east-1.
  • <bucket> is the name of your Lyve Cloud bucket.
  • <access-key> is your access key.
  • <secret-key> is your secret key.
  1. Initialize the repository:
  • Run command: restic init
  • Enter password for new repository

Restic Basic Commands

Backup

restic backup /Users/660186/desktop/PicFolder

Result

enter password for repository:
repository 91500045 opened (version 2, compression level auto)
created new cache in /Users/660186/Library/Caches/restic
no parent snapshot found, will read all files
[0:00]          0 index files loaded

Files:           4 new,     0 changed,     0 unmodified
Dirs:            4 new,     0 changed,     0 unmodified
Added to the repository: 2.154 MiB (2.121 MiB stored)

processed 4 files, 2.149 MiB in 0:19
snapshot 69ea64c2 saved

Restore

restic restore latest --target /Users/660186/documents/Restic


Result

enter password for repository:
repository 91500045 opened (version 2, compression level auto)
[0:00] 100.00%  1 / 1 index files loaded
restoring snapshot 69ea64c2 of [/Users/660186/desktop/PicFolder] at 2024-11-15 09:36:30.23865 +0100 CET by 660186@sgs-u660186l320 to /Users/660186/documents/Restic
Summary: Restored 8 files/dirs (2.149 MiB) in 0:04

Check

restic check 

Result

using temporary cache in /var/folders/56/5mhgst5d00xdtvlg3nx1gmcrmrpk1z/T/restic-check-cache-4112886137
create exclusive lock for repository
enter password for repository:
repository 91500045 opened (version 2, compression level auto)
created new cache in /var/folders/56/5mhgst5d00xdtvlg3nx1gmcrmrpk1z/T/restic-check-cache-4112886137 load indexes
[0:00] 100.00%  1 / 1 index files loaded
check all packs
check snapshots, trees and blobs
[0:00] 100.00%  1 / 1 snapshots