User Tools

Site Tools


public:using_btrbk_to_backup_my_home_partition

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
public:using_btrbk_to_backup_my_home_partition [2017/07/07 09:27]
fangfufu [Sending snapshots to the external hard drive]
public:using_btrbk_to_backup_my_home_partition [2017/07/21 13:29]
fangfufu [Btrbk configuration]
Line 33: Line 33:
 volume /mnt/home volume /mnt/home
         snapshot_preserve       24h 7d 4w         snapshot_preserve       24h 7d 4w
-        snapshot_preserve_min   1d+        snapshot_preserve_min   latest 
 +        target_preserve         24h 30d 
 +        target_preserve_min     latest
         snapshot_dir snapshots         snapshot_dir snapshots
         subvolume home         subvolume home
 +                target send-receive /mnt/storage/home-backups
  
 volume ssh://127.0.0.1/mnt/home volume ssh://127.0.0.1/mnt/home
         ssh_identity /root/.ssh/id_rsa         ssh_identity /root/.ssh/id_rsa
-        target_preserve         no +        target_preserve         180d 
-        target_preserve         6m+        target_preserve_min     latest
         snapshot_create         no         snapshot_create         no
         snapshot_dir snapshots         snapshot_dir snapshots
         subvolume home         subvolume home
-                target send-receive /media/fangfufu/Hitachi500GB/home-backups+                target send-receive /media/fangfufu/WD500GB/home-backups
                 target send-receive /media/fangfufu/Seagate500GB/home-backups                 target send-receive /media/fangfufu/Seagate500GB/home-backups
 </code> </code>
Line 50: Line 53:
 Basically, my laptop is configured to save 24 hourly snapshots, 7 daily snapshots, 4 weekly snapshots. The external backup drive has 6 months of snapshots.  Basically, my laptop is configured to save 24 hourly snapshots, 7 daily snapshots, 4 weekly snapshots. The external backup drive has 6 months of snapshots. 
  
-The extra ''[[ssh://127.0.0.1/mnt/home]]'' paragraph basically follows the "Example: multiple btrbk instances" on the btrbk's Github page[(btrbk_github)]. This allows ''snapshot_dir'' to get cleared up locally. If you write everything in one paragraph, then btrbk refuses to clean up snapshots, because external hard drives are not connected. If you write another paragraph of ''volume /mnt/home'', then btrbk complains that the two snapshots are created at the same directory. +The extra ''[[ssh://127.0.0.1/mnt/home]]'' paragraph basically follows the "Example: multiple btrbk instances" on the btrbk's Github page[(btrbk_github)]. This allows ''snapshot_dir'' to get cleared up locally. If you write everything in one paragraph, then btrbk refuses to clean up snapshots, because external hard drives are not connected. If you write another paragraph of ''volume /mnt/home'', then btrbk complains that the two snapshots are created at the same directory. The side effect of that is the funny ''ssh'', ''sshd'', ''btrfs-send'', ''btrfs-receive'' CPU usage, when sending snapshot to external drives
  
 ===== Doing backup ===== ===== Doing backup =====
public/using_btrbk_to_backup_my_home_partition.txt · Last modified: 2018/03/31 01:38 (external edit)