Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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 314 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

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    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