mkdocs-benoit.jp.net/BackupStrategy.page

40 lines
1.3 KiB
Text
Raw Normal View History

2018-03-03 12:59:31 +00:00
---
format: Markdown
toc: yes
title: Backup Strategy
...
# Servers
- Saber, daily borg backup to Ikachan
- Miku, daily borg backup to Ikachan
2018-03-03 13:00:54 +00:00
- Ikachan, daily borg backup to /backup and to Saber (/backup excluded)
2018-03-03 12:59:31 +00:00
- Ikachan, monthly copy of /backup to OrangeBackupUSBDisk
2018-03-03 13:05:27 +00:00
# Laptop
2018-03-03 12:59:31 +00:00
2019-03-06 22:02:50 +00:00
- Mikubook
2019-03-07 20:26:41 +00:00
- Every hour `/home` borg backup to `/media/sata/$USER/Backups`
2019-03-06 22:02:50 +00:00
- Every day `/` borg backup to `/media/$USER/BACKUP/` (disk **BACKUP_A** or **BACKUP_B** connected)
- Every month manual swapping of disks **BACKUP_A** and **BACKUP_B** on Mikubook-Ikachan
2018-03-03 12:59:31 +00:00
2018-03-03 13:05:27 +00:00
# Desktop
No backup strategy for now...
2018-03-03 12:59:31 +00:00
# Android devices
2019-03-02 14:29:19 +00:00
- OnePlus6, monthly `adb pull` to Mikubook /media/sata/$USER/Backups/Oneplus6
2018-03-25 19:48:05 +00:00
```
2019-03-02 14:29:19 +00:00
$ adb pull -a /sdcard Oneplus6
2019-03-02 16:21:10 +00:00
$ tar cvf - Oneplus6 | lz4 > Oneplus6.tar.lz4 && rm -rf Oneplus6
2018-03-25 19:48:05 +00:00
```
2019-03-02 15:37:21 +00:00
- GalaxyTabS2, monthly `adb backup` in recovery (+tar.gz media) to Mikubook /media/sata/$USER/Backups
2018-03-25 19:31:14 +00:00
```
2019-03-02 15:37:21 +00:00
$ adb backup --twrp --compress system data cache boot efs persist
$ adb exec-out 'tar --create /sdcard1/media/0 2>/backup-errors.txt' | pigz > media.tar.gz
2019-03-02 17:34:28 +00:00
$ adb shell 'dd if=/dev/block/mmcblk0' | lz4 > mmcblk0.img.lz4
$ adb shell 'dd if=/dev/block/mmcblk1' | lz4 > mmcblk1.img.lz4
2018-03-25 19:31:14 +00:00
```
2018-03-03 13:10:50 +00:00
2018-03-28 13:39:31 +00:00
Nextcloud is used for some data (photos, some synced folders) and all contacts, permanent synchronization.