klaus20
Goto Top

7 zip Pfade mitsichern

Hallo liebe Administrator.de-Gemeinde!
Ich hätte mal wieder eine Frage an Euch.

Wie kann ich mit 7 zip den Pfad mitsichern ??

Momentan mache ich folgendes :

Ich erstelle eine backup.txt mit folgenden Inhalt :
backup.txt echo C:\Verzeichnis1\Verzeichnis2\*.*
backup.txt echo C:\Verzeichnis1\Verzeichnis2\Verzeichnis3\
backup.txt echo C:\Verzeichnis1\Verzeichnis2\Verzeichnis4\Index.*
backup.txt echo C:\Verzeichnis1\Verzeichnis2\Verzeichnis4\Daten.*

7z a -mx3 -tzip %name% -up1q1r2x1y2z2w2 -ssw @backup.txt > NUL

Die zip datei hat nun den kompletten Inhalt von Verzeichnis2 + Verzeichnis3

Ich möchte aber gerne daß der ganze Pfad mitgesichert wird:
C:\Verzeichnis1 (ohne Inhalt) \Verzeichnis2\( mit Inhalt) \Verzeichnis3 (mit Inhalt) \Verzeichnis4 (mit teilweisen Inhalt)

Ich weiß nicht ob sowas geht es wäre nur etwas praktischer.

Viele Grüße

Klaus

Content-Key: 290821

Url: https://administrator.de/contentid/290821

Printed on: April 19, 2024 at 14:04 o'clock

Member: bastla
Solution bastla Dec 13, 2015 updated at 12:26:15 (UTC)
Goto Top
Hallo Klaus20!

Versuch es mit dem Schalter -spf oder -spf2 (ohne Laufwerksbuchstaben) ...

Grüße
bastla
Member: Klaus20
Klaus20 Dec 13, 2015 at 12:36:14 (UTC)
Goto Top
Hallo bastla,
vielen Dank für Deine Antwort.
Kannst Du mir sagen wohin der Schalter muß ??

Bei den folgenden Versuchen wir gar keine zip mehr erzeugt.

7z a -mx3 -tzip -spf2 %name% -up1q1r2x1y2z2w2 -ssw @backup.txt > NUL
7z a -mx3 -spf2 -tzip %name% -up1q1r2x1y2z2w2 -ssw @backup.txt > NUL
7z a -mx3 -tzip %name% -up1q1r2x1y2z2w2 -ssw -spf2 @backup.txt > NUL
7z a -spf2 -mx3 -tzip %name% -up1q1r2x1y2z2w2 -ssw @backup.txt > NUL

Gruß Klaus

Habe aus Versehen das Thema als gelöst markiert - wie kann ich das rückgängig machen.
Member: Klaus20
Klaus20 Dec 13, 2015 at 13:55:30 (UTC)
Goto Top
So nun habe ich es doch geschaft !!
7z a -mx3 -tzip %name% -spf -up1q1r2x1y2z2w2 -ssw @backup.txt > NUL

Gruß Klaus