Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cerulean)
  • No Skin
Collapse
Brand Logo

Fórum

  1. Home
  2. Uživatelské návody
  3. Restic - rychlý a bezpečný zálohovací program

Restic - rychlý a bezpečný zálohovací program

Scheduled Pinned Locked Moved Uživatelské návody
1 Posts 1 Posters 232 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • raven2czR Offline
    raven2czR Offline
    raven2cz
    wrote on last edited by
    #1

    Restic - rychlý a bezpečný zálohovací program

    Na Arch Linuxu je balíček zvaný restic nainstalovaný z oficiálních komunitních repozitářů.

    $ pacman -S restic
    
    restic init --repo ~/nfs/homes/box/backup/arch-main/
    restic init --repo ~/nfs/homes/box/backup/mx/ 
    restic init --repo ~/nfs/homes/box/backup/arch1/ 
    
    sudo restic -r ~/nfs/homes/box/backup/arch-main backup --one-file-system --exclude-caches --exclude={/dev,/media,/mnt,/proc,/run,/sys,/tmp,/var/tmp,/home/box/Downloads,/home/box/WFD-REPOSITORY,/home/box/AOS-AUTO,/home/box/SynologyDrive,/home/box/OneCloud,/home/box/git,/home/box/Videos,/home/box/Pictures,/home/box/nfs,/home/box/Music,/home/box/ide} --verbose /
    
    sudo restic -r ~/nfs/homes/box/backup/mx backup --one-file-system --exclude-caches --exclude={/dev,/media,/mnt,/proc,/run,/sys,/tmp,/var/tmp,/home/box/Downloads,/home/box/WFD-REPOSITORY,/home/box/AOS-AUTO,/home/box/SynologyDrive,/home/box/OneCloud,/home/box/git,/home/box/Videos,/home/box/Pictures,/home/box/nfs,/home/box/Music,/home/box/ide} --verbose / 
    
    sudo restic -r ~/nfs/homes/box/backup/arch1 backup --one-file-system --exclude-caches --exclude={/dev,/media,/mnt,/proc,/run,/sys,/tmp,/var/tmp,/home/box/Downloads,/home/box/nfs} --verbose /
    
    
    restic -r ~/nfs/homes/box/backup/arch-main check
    
    restic -r ~/nfs/homes/box/backup/arch-main snapshots
    
    restic -r /srv/restic-repo copy --repo2 /srv/restic-repo-copy
    
    #Full restore:
    restic -r ~/nfs/homes/box/backup/arch-main restore latest --target /tmp/restore --path "/" --host r7arch
    
    #Restore specific file/folder
    restic -r /srv/restic-repo restore 79766175 --target /tmp/restore-work --include /work/foo
    
    #Dump specific file to pipe
    restic -r /srv/restic-repo dump 098db9d5 production.sql | mysql
    
    #Mount snapshot
    $ mkdir /mnt/restic
    $ restic -r ~/nfs/homes/box/backup/arch-main mount /mnt/restic
    
    #Deleting and pruning
    restic -r /srv/restic-repo forget bdbd3439
    restic -r /srv/restic-repo prune
    
    #Best deleting for me
    restic forget --keep-last 3 --prune
    
    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups