grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

borg.md (560B)


      1 # borg
      2 
      3 * create repo
      4 ```
      5 borg init -e repokey /path/to/repo
      6 ```
      7 * create archive
      8 ```
      9 borg create /path/to/repo::archive /path/to/backup
     10 ```
     11 * or over ssh
     12 ```
     13 borg create ssh://user@host/path/to/repo::archive /path/to/backup
     14 ```
     15 
     16 ## my procedure
     17 ```
     18 borg init -e repokey /media/backup/borg-hostname
     19 borg create /media/backup/borg-hostname::$(date +%Y%m%d) ${HOME}
     20 borg list /media/backup/borg-hostname
     21 sudo borg mount /media/backup/borg-hostname::$(date +%Y%m%d) /media/recover
     22 sudo umount /media/recover
     23 rclone sync /media/backup <cloud_storage>:<bucket>
     24 ```