https://github.com/borgbackup/borg-import
import backups into a borgbackup repository
https://github.com/borgbackup/borg-import
backups borgbackup convert import python python-3 rsync
Last synced: about 2 months ago
JSON representation
import backups into a borgbackup repository
- Host: GitHub
- URL: https://github.com/borgbackup/borg-import
- Owner: borgbackup
- License: other
- Created: 2016-10-25T20:51:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-07-15T21:00:44.000Z (3 months ago)
- Last Synced: 2025-08-04T15:45:30.354Z (2 months ago)
- Topics: backups, borgbackup, convert, import, python, python-3, rsync
- Language: Python
- Homepage: https://borg-import.readthedocs.io/
- Size: 120 KB
- Stars: 46
- Watchers: 8
- Forks: 27
- Open Issues: 10
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
- Support: docs/support.rst
- Authors: AUTHORS
Awesome Lists containing this project
- awesome-hacking-lists - borgbackup/borg-import - importer for rsync+hardlink based backups / rsnapshot (Python)
README
What is borg-import?
====================borg-import converts backups made with other backup software into the format used by `BorgBackup `_.
See ``borg-import -h`` for more information.
Potential advantages over manually doing it
===========================================Note: we have different importers and some importers may not support all the features.
- automation: less manual work, import lots of backups into a borg repo with one command
- automatically makes up borg archive name from what you give + discovered timestamp
- sets borg archive creation timestamp to the historically correct date/time
- temporarily moves the source directory so the borg files cache will speed up borg createCurrently supported import formats
==================================`BorgBackup `_
--------------------------------------------------Imports archives from an existing Borg repository into a new one.
This is useful when a Borg repository needs to be rebuilt (e.g. if
your borg key and passphrase was compromised).Usage: ``borg-import borg SOURCE_REPOSITORY DESTINATION_REPOSITORY``
See ``borg-import borg -h`` for help.
`rsnapshot `_
-----------------------------------------------------Usage: ``borg-import rsnapshot SNAPSHOT_ROOT BORG_REPOSITORY``
See ``borg-import rsnapshot -h`` for help.
Simple rsync with hard links
----------------------------Assumes one folder per archive, with changes being tracked based on last modification time (mtime).
Usage: ``borg-import rsynchl RSYNC_ROOT BORG_REPOSITORY``
See ``borg-import rsynchl -h`` for help.
`rsync-time-backup `_
---------------------------------------------------------------------Similar to `rsynchl`, except with timestamp extraction optimized for `rsync-time-backup` folder names.
Usage: ``borg-import rsync_tmbackup --prefix=foo- RSYNC_ROOT BORG_REPOSITORY``
See ``borg-import rsync_tmbackup -h`` for help.
Backup tools based on rsync with hard links
-------------------------------------------borg-import should, in principle, be able to import backups from any backup tool that is
based on rsync with hard links. This requires that the tool matches the assumptions listed above for simple
rsync.* `backintime `_
* others?