2019-03-13 02:19:20 -07:00
|
|
|
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
|
|
:target: https://github.com/ambv/black
|
|
|
|
|
|
|
|
rbackup - An rsync-based backup tool
|
|
|
|
====================================
|
2019-03-13 02:19:33 -07:00
|
|
|
A tool that automates backup, file list parsing, snapshot creation, and hard-linking of files.
|
2019-03-13 02:19:20 -07:00
|
|
|
|
|
|
|
Features
|
|
|
|
--------
|
|
|
|
* Snapshot-based backup management
|
|
|
|
* Backups of deleted and modified files
|
|
|
|
|
2019-03-13 02:43:28 -07:00
|
|
|
Target Directories
|
|
|
|
------------------
|
|
|
|
* /boot
|
|
|
|
* /etc
|
|
|
|
* /home
|
|
|
|
* /root
|
|
|
|
* /var
|
|
|
|
* /var/lib
|
|
|
|
* /var/log
|
|
|
|
* Extras
|
|
|
|
* Installed packages
|
|
|
|
* Package manager databases
|
|
|
|
|
2019-03-13 20:41:40 -07:00
|
|
|
Backup Directory Hierarchy
|
|
|
|
--------------------------
|
|
|
|
* basedir
|
|
|
|
| - data *directory containing all snapshots*
|
|
|
|
| | - snapshot1 *first snapshot*
|
|
|
|
| | - boot
|
|
|
|
| | - home
|
|
|
|
| | - etc
|
|
|
|
| | - snapshot2
|
|
|
|
| | - boot
|
|
|
|
| | - home
|
|
|
|
| | - etc
|
|
|
|
| - prev *link to previous snapshot*
|
|
|
|
* Assuming snapshot2 was the previous backup and snapshot1 was the backup before that:
|
|
|
|
* prev would link to snapshot2
|
|
|
|
* Unchanged files files from snapshot1 backed up to snapshot2 are hardlinked to snapshot1
|
|
|
|
|
|
|
|
|
2019-03-13 02:19:20 -07:00
|
|
|
Implementation Notes
|
|
|
|
--------------------
|
2019-03-13 02:43:28 -07:00
|
|
|
* os.path is used for path handling
|
2019-03-13 02:19:20 -07:00
|
|
|
* Use --link-dest=
|
|
|
|
* Use --suffix=, --backup, and --backup-dir=
|
2019-03-13 20:41:40 -07:00
|
|
|
|
|
|
|
To-do
|
|
|
|
-----
|
|
|
|
* Use --suffix=, --backup, and --backup-dir=
|