computer:restic:windows:restic-backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
computer:restic:windows:restic-backup [2023/11/08 08:28] springcomputer:restic:windows:restic-backup [2023/11/09 09:34] (current) spring
Line 7: Line 7:
 Restic mit allen Parametern wird über eine Batch-Datei gestartet Restic mit allen Parametern wird über eine Batch-Datei gestartet
  
 +===== Restic-Start =====
 <file bat c:\windows\restic_backup.cmd> <file bat c:\windows\restic_backup.cmd>
 echo off echo off
Line 12: Line 13:
 c:\windows\restic.exe backup --password-file c:\users\<benutzername>\restic-password.txt -r rest:https://<abc>:<xyz>@restic.hermes.markus-spring.info -v --use-fs-snapshot --host <hostname> --exclude-caches c:\users\<benutzername>\ c:\windows\restic.exe backup --password-file c:\users\<benutzername>\restic-password.txt -r rest:https://<abc>:<xyz>@restic.hermes.markus-spring.info -v --use-fs-snapshot --host <hostname> --exclude-caches c:\users\<benutzername>\
 </file> </file>
 +
 +===== Start 1x täglich =====
  
 Die Aufgabenplanung braucht Unterstützung von einer cmd/bat-Datei, um sicherzustellen, dass das Backup nur einmal täglich ausgeführt wird. Die Aufgabenplanung braucht Unterstützung von einer cmd/bat-Datei, um sicherzustellen, dass das Backup nur einmal täglich ausgeführt wird.
Line 29: Line 32:
 echo %myRun%> c:\windows\restic_last_run.txt echo %myRun%> c:\windows\restic_last_run.txt
 </file> </file>
 +
 +===== Aufgabenplanung =====
  
 Die Aufgabenplanung wie folgt einrichten:  Die Aufgabenplanung wie folgt einrichten: 
Line 39: Line 44:
 {{:computer:restic:windows:pasted:20231108-082520.png}} {{:computer:restic:windows:pasted:20231108-082520.png}}
  
 +===== Hosts-Datei =====
 +Ein lokaler Backupserver kann entweder über lokales DNS (pihole) oder auf jedem Windows-Client in der hosts-Datei bekanntgegeben werden.
 +<file bash c:\windows\system32\drivers\etc\hosts>
 +# localhost name resolution is handled within DNS itself.
 +# 127.0.0.1       localhost
 +# ::1             localhost
 +192.168.178.124       yournamehere.local
 +192.168.178.124       restic.yournamehere.local
 +192.168.178.124       resticinfo.yournamehere.local
 +192.168.178.124       pihole.yournamehere.local
 +</file>
  
  • computer/restic/windows/restic-backup.1699432102.txt.gz
  • Last modified: 2023/11/08 08:28
  • by spring