Borg backup: Difference between revisions

imported>Danbst
No edit summary
Phobos (talk | contribs)
Minor grammar corrections
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Borg is a backup tool to perform incremental backups, local or remote.
[https://www.borgbackup.org/ BorgBackup] (short: Borg) is a deduplicating incremental backup program for local and remote data. Optionally, it supports compression and authenticated encryption.
 
This wiki article extends the documentation in the [https://nixos.org/manual/nixos/stable/#module-borgbase NixOS manual].
 
It's easier to take the first steps with Borg by using a GUI - information about Vorta may also be found in the [https://nixos.org/manual/nixos/stable/#opt-services-backup-borgbackup-vorta NixOS manual].


<syntaxHighlight lang=bash>
<syntaxHighlight lang=bash>
Line 5: Line 9:
</syntaxHighlight>
</syntaxHighlight>


To be able to do remote backups it should be installed both locally and remotely, but usually no remote configuration required, only local one.
To be able to do remote backups it should be installed both locally and remotely, but usually no remote configuration required, only a local one.


== Creating backups ==
== Creating backups ==
Line 54: Line 58:
           encryption.mode = "none";
           encryption.mode = "none";
           environment.BORG_RSH = "ssh -o 'StrictHostKeyChecking=no' -i /home/danbst/.ssh/id_ed25519";
           environment.BORG_RSH = "ssh -o 'StrictHostKeyChecking=no' -i /home/danbst/.ssh/id_ed25519";
           environment.BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK = "1";
           environment.BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK = "yes";
           extraCreateArgs = "--verbose --stats --checkpoint-interval 600";
           extraCreateArgs = "--verbose --stats --checkpoint-interval 600";
           repo = "ssh://user@example.com//media/backup/${name}";
           repo = "ssh://user@example.com//media/backup/${name}";
Line 206: Line 210:


If anybody reading this have found a way to mount as a user properly, please update the code above.
If anybody reading this have found a way to mount as a user properly, please update the code above.
[[Category:Applications]]
[[Category:Backup]]
[[Category:NixOS Manual]]
[[Category:Cookbook]]