Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
システムバックアップのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
システムバックアップ
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:バックアップ]] [[en:System backup]] [[es:System backup]] [[pt:System backup]] [[zh-hans:System backup]] {{Related articles start}} {{Related|Synchronization and backup programs}} {{Related|System maintenance#Backup}} {{Related|Data-at-rest encryption#Backup for disk encryption scenarios}} {{Related|Disk cloning}} {{Related|Migrate installation to new hardware}} {{Related|File recovery}} {{Related articles end}} 例えば {{ic|/etc}}, {{ic|/home}}, {{ic|/root}}, {{ic|/var}}, サーバーの場合は {{ic|/srv}} に保存されているシステムとユーザーのデータを定期的にバックアップすることが重要です。 == Btrfs のスナップショットを利用する == こちらを参照 [[Btrfs#スナップショット]], [[システムバックアップ#スナップショットと/bootパーティション]], それと [[Snapper]] == LVM のスナップショットを利用する == こちらを参照 [[LVM#スナップショット]], [[LVM によるルートファイルシステムのスナップショット作成]], それと [[システムバックアップ#スナップショットと/bootパーティション]] == rsync を利用する == こちらを参照 [[rsync によるフルシステムバックアップ]] == tar を利用する == こちらを参照 [[Tar によるフルシステムバックアップ]] == SquashFS を利用する == See [[SquashFS によるフルシステムバックアップ]] == 起動可能なバックアップ == 起動可能なバックアップをとっておくと、ファイルシステムが壊れたり、アップデートでシステムが壊れたりしたときに便利です。バックアップは、''testing'' レポを有効にして、アップデートのテストベッドとして使うこともできます。システムを別のパーティションやドライブに移して起動したい場合、バックアップの {{ic|/etc/fstab}} とブートローダの設定ファイルを更新するのと同じくらい簡単な手順で行えます。 このセクションでは、システムを別のドライブやパーティションにバックアップしたこと、現在のブートローダが問題なく動作していること、そしてバックアップからも起動したいことを前提に説明します。 === fstab の更新 === 再起動せずに、バックアップの [[fstab]] を編集し、既存のエントリをコメントアウトまたは削除します。この例のように、バックアップを含むパーティションに1つのエントリを追加します。 /dev/sda''X'' / ''ext4'' defaults 0 1 適切なデバイス名とファイルシステムタイプを使用することを忘れないでください。 === Update the bootloader's configuration file === For [[Syslinux]], all you need to do is duplicate the current entry, except pointing to a different drive or partition. {{Tip|Instead of editing {{ic|syslinux.cfg}}, you can also temporarily edit the menu during boot. When the menu shows up, press the {{ic|Tab}} key and change the relevant entries. Partitions are counted from one, drives are counted from zero.}} For [[GRUB]], it is recommended that you automatically [[GRUB#Generate_the_main_configuration_file|re-generate the main configuration file]]. If you want to freshly install all GRUB files to somewhere other than {{ic|/boot}}, such as {{ic|/mnt/newroot/boot}}, use the {{ic|--boot-directory}} flag. Also verify the new menu entry in {{ic|/boot/grub/grub.cfg}}. Make sure the UUID is matching the new partition, otherwise it could still boot the old system. Find the UUID of a partition with [[lsblk]]: $ lsblk -no NAME,UUID /dev/sd''XY'' where {{ic|/dev/sd''XY''}} is the desired partition (e.g. {{ic|/dev/sdb3}}). To list the UUIDs of partitions GRUB thinks it can boot, use ''grep'': # grep UUID= /boot/grub/grub.cfg === First boot === Reboot the computer and select the right entry in the bootloader. This will load the system for the first time. All peripherals should be detected and the empty folders in {{ic|/}} will be populated. Now you can re-edit {{ic|/etc/fstab}} to add the previously removed partitions and mount points. == Snapshots and /boot partition == If your [[file system]] supports snapshots (e.g., [[LVM#Snapshots|LVM]] or [[Btrfs#Snapshots|Btrfs]]), these will most likely exclude the {{ic|/boot}} partition or [[ESP]]. You can copy the boot partition automatically on a kernel update to your {{ic|root}} partition with a [[pacman hook]] (make sure the hook file is owned by root): {{hc|/etc/pacman.d/hooks/50-bootbackup.hook|2= [Trigger] Operation = Upgrade Operation = Install Operation = Remove Type = Path Target = usr/lib/modules/*/vmlinuz [Action] Depends = rsync Description = Backing up /boot... When = PostTransaction Exec = /usr/bin/rsync -a --delete /boot /.bootbackup }}
このページで使用されているテンプレート:
テンプレート:Hc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:META Related articles start
(
ソースを閲覧
)
テンプレート:Note
(
ソースを閲覧
)
テンプレート:Related
(
ソースを閲覧
)
テンプレート:Related articles end
(
ソースを閲覧
)
テンプレート:Related articles start
(
ソースを閲覧
)
テンプレート:Tip
(
ソースを閲覧
)
システムバックアップ
に戻る。
検索
検索
システムバックアップのソースを表示
話題を追加