Duply: Unterschied zwischen den Versionen

Aus Foxwiki
Wechseln zu:Navigation, Suche
K Textersetzung - „ options"“ durch „ col1bold col1nowrap"“
 
(22 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 3: Zeile 3:
== Beschreibung ==
== Beschreibung ==
; Frontend für [[duplicity]]
; Frontend für [[duplicity]]
Shell-Frontend für [[duplicity]]
Vereinfacht die Ausführung von Duplicity
* Verwendung vereinfachen
* Verwendung von [[duplicity]] vereinfachen
* Einstellungen in Profilen verwalten
* Einstellungen in Profilen verwalten
* Alle duplicity-Backends werden unterstützt
* Stapelverarbeitung
* Stapelverarbeitung
** Es unterstützt die Ausführung von mehreren Befehlen als Stapelverarbeitung
** Ausführung von mehreren Befehlen als Stapelverarbeitung
** Damit sind einzeilige cron-Einträge möglich und der Benutzer kann Skripte verwenden, die vor oder nach dem Backup ausgeführt werden
** Damit sind einzeilige cron-Einträge möglich
* Alle duplicity-Backends werden unterstützt
** der Benutzer kann Skripte verwenden, die vor oder nach dem Backup ausgeführt werden
 
; Vereinfacht die Ausführung von Duplicity
Frontend für [[duplicity]]
* Backups können lokal oder einem anderen System gespeichert werden
* Backups können lokal oder einem anderen System gespeichert werden
* Cron oder Kommandozeile
* Cron oder Kommandozeile
Zeile 24: Zeile 22:
Für jeden Sicherungsauftrag wird ein Konfigurationsprofil erstellt
Für jeden Sicherungsauftrag wird ein Konfigurationsprofil erstellt


; Profilordner
== Profilordner ==
<syntaxhighlight lang="bash" highlight="1" line>
<syntaxhighlight lang="bash" highlight="1" line copy>
~/.duply/<profile>
~/.duply/<profile>
</syntaxhighlight>
</syntaxhighlight>
Zeile 32: Zeile 30:
: Wenn der Ordner '/etc/duply' existiert, werden die Profile für den Superuser Benutzer root dort gesucht und erstellt werden
: Wenn der Ordner '/etc/duply' existiert, werden die Profile für den Superuser Benutzer root dort gesucht und erstellt werden


; Protokolle
== Protokolle ==
{| class="wikitable options big"
{| class="table table-striped table-hover col1bold col1nowrap"
! Protokoll !! Beschreibung
! Protokoll !! Beschreibung
|-
|-
Zeile 52: Zeile 50:


== Installation ==
== Installation ==
<syntaxhighlight lang="bash" highlight="1" line>
<syntaxhighlight lang="bash" highlight="1" copy>
sudo apt install duply
sudo apt install duply
</syntaxhighlight>
</syntaxhighlight>


=== Dateien ===
=== Dateien ===
; /usr/bin/
└── usr
  duply
├── bin
 
  │   └── duply
; /usr/share
└── share
  /doc/duply/
  ├── doc
  README
│   └── duply
  README.Debian
│      ├── changelog.Debian.gz
  TODO
│      ├── changelog.gz
  changelog.Debian.gz
│      ├── copyright
  changelog.gz
│      ├── README
  copyright
│      ├── README.Debian
  systemd-unit.examples
│      ├── systemd-unit.examples
  HOWTO.txt
│      │   ├── HOWTO.txt
  systemd-unit.examples/system/
│      │   ├── system
     duply-backup@.service
│       │   │   ├── duply-backup@.service
     duply-backup@.timer
│       │   │   ├── duply-backup@.timer
     duply-cleanup@.service
│       │   │   ├── duply-cleanup@.service
     duply-cleanup@.timer
│       │   │   ├── duply-cleanup@.timer
     duply-verify@.service
│       │   │   ├── duply-verify@.service
     duply-verify@.timer
│       │   │   ├── duply-verify@.timer
     notify-failed-backup@.service
│       │   │   └── notify-failed-backup@.service
  systemd-unit.examples/user/
│      │   └── user
     duply-backup@.service
│       │      ├── duply-backup@.service
     duply-backup@.timer
│       │      ├── duply-backup@.timer
     duply-cleanup@.service
│       │      ├── duply-cleanup@.service
     duply-cleanup@.timer
│      │       ├── duply-cleanup@.timer
     duply-verify@.service
│      │       ├── duply-verify@.service
     duply-verify@.timer
│       │      ├── duply-verify@.timer
     notify-failed-backup@.service
│       │      └── notify-failed-backup@.service
  man/man1/
  │      └── TODO
  duply.1.gz
  └── man
 
  └── man1
== Aufruf ==
  └── duply.1.gz
=== Argumente ===
=== Optionen ===
{| class="wikitable options"
|-
! Option !! Beschreibung
|-
| --force || passed to duplicity (see commands purge, purgeFull, purgeIncr, cleanup)
|-
| --preview || do nothing but print out generated duplicity command lines
|-
| --disable-encryption || disable encryption, overrides profile settings
|}
 
=== Kommandos ===
{| class="wikitable sortable options"
|-
! Option !! Parameter ||Beschreibung
|-
| usage || || get usage help text
|-
| and/or/groupIn/groupOut || || pseudo commands used in batches (see SEPARATORS above)
|-
| create || || creates a configuration profile
|-
| backup || || backup with pre/post script execution (batch: [pre_bkp_post]), full (if full_if_older matches or no earlier backup is found) incremental (in all other cases)
|-
| pre/post || ||execute '<profile>/pre', '<profile>/post' scripts
|-
| bkp || || as above but without executing pre/post scripts
|-
| full || ||force full backup
|-
| incr || || force incremental backup
|-
| list || [<age>] || list all files in backup (as it was at <age>, default: now)
|-
| status || || prints backup sets and chains currently in repository
|-
| verify || [<age>] [--compare-data] || list files changed, since age if given
|-
| verifyPath || <rel_path_in_bkp> <local_path> [<age>] [--compare-data] || list changes of a file or folder path in backup compared to a local path, since age if given
|-
| restore || <target_path> [<age>] || restore the complete backup to <target_path> [as it was at <age>]
|-
| fetch || <src_path> <target_path> [<age>] || fetch single file/folder from backup [as it was at <age>]
|-
| purge || [<max_age>] [--force] || list outdated backup files (older than $MAX_AGE) [use --force to actually delete these files]
|-
| purgeFull || [<max_full_backups>] [--force] || list outdated backup files ($MAX_FULL_BACKUPS being the number of full backups and associated incrementals to keep, counting in reverse chronological order) [use --force to actually delete these files]
|-
| purgeIncr || [<max_fulls_with_incrs>] [--force] || list outdated incremental backups ($MAX_FULLS_WITH_INCRS being the number of full backups which associated incrementals will be kept, counting in reverse chronological order) [use --force to actually delete these files]
|-
| purgeAuto || [--force] || convenience batch wrapper for all purge commands above
* purge, purgeFull, purgeIncr are added if their conf vars were set
* e.g
  MAX_AGE=1Y
  MAX_FULL_BACKUPS=6
  MAX_FULLS_WITH_INCR=3
in profile conf file would result in
  [purge_purgeFull_purgeIncr]
|-
| cleanup || [--force] || list broken backup chain files archives (e.g
* after unfinished run) [use --force to actually delete these files]
|-
| changelog || || print changelog / todo list
|-
| txt2man || || feature for package maintainers - create a manpage based on the usage output
* download txt2man from https://mvertes.free.fr/, put it in the PATH and run 'duply txt2man' to create a man page
|-
| version || || show version information of duply and needed programs
|}
 
=== Umgebung ===
=== Rückgabewert ===
 
== SEPARATORS ==
{| class="wikitable sortable options"
|-
! Option !! !! Beschreibung
|-
| _ || underscore || neutral separator
|-
| + || plus sign, _and_ conditional AND || the next command will only be executed if the previous succeeded
|-
| - || minus sign, _or_ conditional OR || the next command will only be executed if the previous failed
|-
| [ ] || square brackets, _groupIn_/_groupOut_ || enables grouping of commands
|}
 
; Beispiel
<syntaxhighlight lang="bash" highlight="1" line>
</syntaxhighlight>
 
'pre+[bkp-verify]_post'
translates to
'pre_and_groupIn_bkp_or_verify_groupOut_post'
 
=== TIME FORMATS ===
For all time related parameters like age, max_age und weitere Refer to the duplicity manpage for all available formats
; Beispiele
{| class="wikitable sortable options"
|-
! Option !! Beschreibung
|-
| 2002-01-25T07:00:00+02:00 || full date time format string
|-
| 2002/3/5 || date string YYYY/MM/DD
|-
| 12D || interval, 12 days ago
|-
| 1h78m || interval, 1 hour 78 minutes ago
|}


== Sicherheit ==
; Kopieren Sie den ''gesamten'' Profilordner nach der ersten Sicherung an einen sicheren Ort
* Er enthält alles, was für die Wiederherstellung Ihrer Backups benötigt wird (in doppelter Hinsicht)
Achten Sie auf (möglicherweise später hinzugefügte) externe Dateien wie Credentials oder Auth-Dateien (beispielsweise netrc, .megarc, ssh-Schlüssel) oder Umgebungsvariablen (beispielsweise DPBX_ACCESS_TOKEN)
Es ist ratsam, diese im Profilordner zu platzieren, wenn dies überhaupt möglich ist
* beispielsweise im Falle eines 'multi://' Ziels sollte die config .json Datei Env vars zur conf Datei der Duply Profile hinzugefügt werden
Halten Sie den Zugriff auf diese Dateien beschränkt, da sie Informationen (gpg-Schlüssel, Passphrasen und weitere) für den Zugriff und die Änderung Ihrer Backups enthalten
; Zusammenfassung
* Versuchen Sie eine Wiederherstellung von einem anderen Rechner aus, um sicherzustellen, dass Sie wirklich alles haben, was Sie für die Wiederherstellung benötigen
* Wiederholen Sie diese Schritte nach _allen_ Konfigurationsänderungen
* Einige Konfigurationsoptionen sind für die Wiederherstellung entscheidend
<noinclude>
== Anhang ==
== Anhang ==
=== Siehe auch ===
=== Siehe auch ===
Zeile 229: Zeile 98:
* [[duplicity]]
* [[duplicity]]


==== Sicherheit ====
=== Dokumentation ===
=== Dokumentation ===
=== Links ===
=== Links ===
Zeile 239: Zeile 107:
# [https://duply.net/ duply.net]
# [https://duply.net/ duply.net]


[[Kategorie:Linux/Backup]]
[[Kategorie:duply]]
[[Kategorie:Linux/Befehl]]


{{DISPLAYTITLE:duply}}
{{DISPLAYTITLE:duply}}


</noinclude>
</noinclude>
[[Kategorie:Linux/Befehl]]

Aktuelle Version vom 22. September 2026, 20:08 Uhr

duply - Inkrementelle verschlüsselte Backups

Beschreibung

Frontend für duplicity

Vereinfacht die Ausführung von Duplicity

  • Verwendung von duplicity vereinfachen
  • Einstellungen in Profilen verwalten
  • Alle duplicity-Backends werden unterstützt
  • Stapelverarbeitung
    • Ausführung von mehreren Befehlen als Stapelverarbeitung
    • Damit sind einzeilige cron-Einträge möglich
    • der Benutzer kann Skripte verwenden, die vor oder nach dem Backup ausgeführt werden
  • Backups können lokal oder einem anderen System gespeichert werden
  • Cron oder Kommandozeile
  • Speichert Einstellungen in Profilen
  • Batch-Operationen
    ermöglicht, beispielsweise backup_verify+purge
  • Ausführung von Pre-/Post-Skripten
  • verschiedene Aktionen möglich, abhängig vom vorherigen oder nächsten Befehl oder dessen Rückgabewert
  • Vorbedingungsprüfung für fehlerfreie Duplizitätsoperationen

Für jeden Sicherungsauftrag wird ein Konfigurationsprofil erstellt

Profilordner

~/.duply/<profile>
Hinweis
Wenn der Ordner '/etc/duply' existiert, werden die Profile für den Superuser Benutzer root dort gesucht und erstellt werden

Protokolle

Protokoll Beschreibung
ftp
ssh
s3
rsync
cifs
webdav
http

Installation

sudo apt install duply

Dateien

└── usr
├── bin
│   └── duply
└── share
├── doc
│   └── duply
│       ├── changelog.Debian.gz
│       ├── changelog.gz
│       ├── copyright
│       ├── README
│       ├── README.Debian
│       ├── systemd-unit.examples
│       │   ├── HOWTO.txt
│       │   ├── system
│       │   │   ├── duply-backup@.service
│       │   │   ├── duply-backup@.timer
│       │   │   ├── duply-cleanup@.service
│       │   │   ├── duply-cleanup@.timer
│       │   │   ├── duply-verify@.service
│       │   │   ├── duply-verify@.timer
│       │   │   └── notify-failed-backup@.service
│       │   └── user
│       │       ├── duply-backup@.service
│       │       ├── duply-backup@.timer
│       │       ├── duply-cleanup@.service
│       │       ├── duply-cleanup@.timer
│       │       ├── duply-verify@.service
│       │       ├── duply-verify@.timer
│       │       └── notify-failed-backup@.service
│       └── TODO
└── man
└── man1
└── duply.1.gz

Anhang

Siehe auch


Dokumentation

Projekt

  1. https://www.thomas-krenn.com/de/wiki/Backup_unter_Linux_mit_duply
  2. https://wiki.archlinux.org/index.php/Duply#Configuration
  3. https://www.gnupg.org/howtos/de/GnuPGMiniHowto.html
  4. duply.net