Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
Borg backupのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
Borg backup
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:システム管理]] [[Category:バックアップ]] [[en:Borg_backup]] [[fr:Borg_backup]] {{Related articles start}} {{Related|システムバックアップ}} {{Related|同期およびバックアッププログラム}} {{Related articles end}} [https://www.borgbackup.org/ BorgBackup](略してBorg)は重複排除バックアッププログラムです。 オプションで、圧縮と認証済み暗号化をサポートします。 Borg の主な目標は、データをバックアップするための効率的かつ安全な方法を提供することです。使用されるデータ重複排除技術により、変更のみが保存されるため、Borg は毎日のバックアップに適しています。認証された暗号化技術により、完全に信頼されていないターゲットへのバックアップに適しています。 == インストール == [[Install]] the {{Pkg|borg}} package. The development version is available with {{AUR|borg-git}}. For additional features, install the following packages: ; {{Pkg|python-llfuse}}: for mounting archives ; {{Pkg|openssh}}: for connecting to remote hosts ; {{Pkg|borgmatic}}: a set of wrapper scripts to control Borg via YAML files instead of terminal commands ; {{AUR|pika-backup}}: a libadwaita/GTK4 based GUI for Borg ; {{AUR|vorta}}: a Qt-based GUI for Borg == Documentation == The official [https://borgbackup.readthedocs.io/en/stable/index.html documentation] includes a [https://borgbackup.readthedocs.io/en/stable/quickstart.html#a-step-by-step-example quickstart guide]. Local documentation can be found in {{man|1|borg}} and {{ic|apropos borg}}. Additionally, guidance can be found through the command, either generally: $ borg help or for specific commands: $ borg help ''command'' == Usage == The main concept behind Borg is '''de-duplication''': rather than accumulating files as in traditional TAR archiving, de-duplication verifies the identity of files, regardless of their names, by hashing them so that they are only copied once. This means that even without compression, it takes up minimal space for repeated incremental backups. File compression is optional and supports multiple algorithms (zstd is recommended) and intensities. Archives created with Borg can be mounted as FUSE filesystems for browsing and restoring individual files. Archives can be created locally, or on remote systems using [[SSHFS]], [[NFS]], [[Samba]], or similar mounting solutions. Transfer over [[OpenSSH|SSH]] is supported, but the remote host must have Borg available. === Creating repositories === Borg repositories can be encrypted or made tamper-evident. For more information on modes and options, consult the [https://borgbackup.readthedocs.io/en/stable/usage/init.html?highlight=repokey official documentation on setting up a repository]. To create a Borg repository without encryption or authentication: $ borg init --encryption=none ''/path/to/repo'' === Creating archives === Individual archive instances can be created within the repository with the {{ic|borg create}} command. Each archive must be given a unique name. Borg includes [https://borgbackup.readthedocs.io/en/stable/usage/help.html#borg-placeholders a list of placeholders] to make adding strings such at dates, times, usernames, and hostnames easier. To create an archive of the {{ic|archivable-dir}} directory with the hostname of the source machine and the current date: $ borg create ''/path/to/repo''::{hostname}-{now:%Y-%m-%d} archivable-dir Borg supports extensive inclusion and exclusion options. To exclude {{ic|.py}} files from the archive: $ borg create ''...'' --exclude '*.pyc' ''/path/to/repo''::''archive-name'' More information can be found on the {{ic|borg create}} [https://borgbackup.readthedocs.io/en/stable/usage/create.html documentation page]. === Pruning archives === The removal of old archives is not performed automatically, but can be performed manually with the {{ic|borg prune}} command. The number of archives to keep must be specified, and can be limited by the time the archive was created. To keep only the last 7 daily archives, the last four weekly archives, and the last three monthly archives: $ borg prune --keep-daily=7 --keep-weekly=4 --keep-monthly=3 ''/path/to/repo'' To keep only the last 10 archives, regardless of when they were created: $ borg prune --keep-last=10 ''/path/to/repo'' To keep all archives from the past 30 days, regardless of how many archives that includes: $ borg prune --keep-within=30d ''/path/to/repo'' {{Note|Pruning will delete the archives but will not actually free space in the repository. To free space, use the {{ic|borg compact}} command on the repository.}} {{Warning|Pruning is performed on '''all''' archives in the repository unless restricted by the {{ic|--prefix}} or {{ic|--glob-archives}} flags.}} More information can be found on the {{ic|borg prune}} [https://borgbackup.readthedocs.io/en/stable/usage/prune.html documentation page]. === Restoring from an archive === To restore from an archive: $ borg extract ''/path/to/repo''::''archive-name'' ''path/to/restore'' {{Note|Borg will extract the ''full path'' relative to the current working directory. This means that restoring the path {{ic|/home/archuser/path/to/restore}} from an archive while in the archuser's home directory will result in the full restored path being {{ic|/home/archuser/home/archuser/path/to/restore}}}}. Alternatively, a repository can be mounted for interactive restoration: $ borg mount ''/path/to/repo''::''archive-name'' == Tips and tricks == === Cache exclusion === Archives' size can be reduced by excluding cache directories. Directories that adhere to the [http://fileformats.archiveteam.org/wiki/Cache_Directory_Tagging_Standard Cache Directory Archiving Standard] can be automatically excluded by appending {{ic|--exclude-caches}} to the archive creation command: $ borg create ''...'' --exclude-caches ''/path/to/repo''::''archive-name'' === Listing affected files === Many operations in Borg support the {{ic|--list}} flag to list affected files or archives. If paired with {{ic|--dry-run}}, the user can verify the effects of a given command. == See also == * [https://borgbackup.readthedocs.io/en/stable/ Official documentation]
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:META Related articles start
(
ソースを閲覧
)
テンプレート:Man
(
ソースを閲覧
)
テンプレート:Note
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
テンプレート:Related
(
ソースを閲覧
)
テンプレート:Related articles end
(
ソースを閲覧
)
テンプレート:Related articles start
(
ソースを閲覧
)
テンプレート:Warning
(
ソースを閲覧
)
Borg backup
に戻る。
検索
検索
Borg backupのソースを表示
話題を追加