public:using_btrbk_to_backup_my_home_partition
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
public:using_btrbk_to_backup_my_home_partition [2017/07/05 23:58] – [Generating snapshots] fangfufu | public:using_btrbk_to_backup_my_home_partition [2018/03/31 00:38] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Using Btrbk to backup my home partition ====== | ====== Using Btrbk to backup my home partition ====== | ||
- | Due to the [[public: | + | Due to the [[public: |
+ | [[https:// | ||
It is much harder to understand, please read the man page. I am just going to document what I did to my own machine. | It is much harder to understand, please read the man page. I am just going to document what I did to my own machine. | ||
Line 26: | Line 27: | ||
Here is my Btrbk configuration: | Here is my Btrbk configuration: | ||
< | < | ||
- | fangfufu@smithsonian: | ||
lockfile | lockfile | ||
transaction_log | transaction_log | ||
timestamp_format | timestamp_format | ||
- | snapshot_preserve | + | volume /mnt/home |
- | snapshot_preserve_min | + | |
+ | snapshot_preserve_min | ||
+ | target_preserve | ||
+ | target_preserve_min | ||
+ | snapshot_dir snapshots | ||
+ | subvolume home | ||
+ | target send-receive / | ||
- | target_preserve | + | volume |
- | target_preserve | + | |
- | + | target_preserve | |
- | volume /mnt/home | + | target_preserve_min |
- | snapshot_dir snapshots | + | snapshot_create |
- | subvolume home | + | |
- | target send-receive / | + | subvolume home |
+ | | ||
+ | | ||
</ | </ | ||
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 '' | ||
===== Doing backup ===== | ===== Doing backup ===== | ||
Line 50: | Line 60: | ||
< | < | ||
#!/bin/sh | #!/bin/sh | ||
- | exec / | + | echo > / |
+ | / | ||
+ | return 0 | ||
+ | #returning 0 to suppress cron warning emails. | ||
</ | </ | ||
Line 61: | Line 74: | ||
< | < | ||
- | root@smithsonian:~# btrbk run | + | btrbk command line client, version 0.25.0 |
+ | Using configuration: | ||
+ | WARNING: Skipping target "/ | ||
+ | WARNING: Skipping target "/ | ||
+ | Using transaction log: / | ||
+ | Creating subvolume snapshot for: / | ||
+ | [snapshot] source: / | ||
+ | [snapshot] target: / | ||
+ | Cleaning snapshots: / | ||
+ | Deleted 0 subvolumes in: / | ||
+ | WARNING: Skipping cleanup of snapshots for subvolume " | ||
+ | Completed within: 0s (Fri Jul 7 09:27:21 2017) | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
Backup Summary (btrbk command line client, version 0.25.0) | Backup Summary (btrbk command line client, version 0.25.0) | ||
- | Date: Wed Jul | + | Date: Fri Jul |
Config: / | Config: / | ||
Line 76: | Line 100: | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
/ | / | ||
- | +++ / | + | +++ / |
- | *** / | + | |
- | </ | + | 127.0.0.1:/ |
+ | !!! Target "/ | ||
+ | !!! Target "/ | ||
+ | |||
+ | NOTE: Some errors occurred, which may result in missing backups! | ||
+ | Please check warning and error messages above.</ | ||
===== Accesing snapshots ===== | ===== Accesing snapshots ===== |
public/using_btrbk_to_backup_my_home_partition.1499299117.txt.gz · Last modified: 2018/03/31 00:38 (external edit)