古いバックアップがいくつかあります。スナップ写真。これらのディレクトリは次のとおりです。
/backups/week.0
/backups/week.1
/backups/week.2
/backups/week.3
/backups/week.4
コピーは1つだけ保持し、残りは削除したいと思います。バックアップは増分式なので、圧縮して他のすべてのエントリを削除すると機能しweek.0
ますかweek.0.zip
?
ベストアンサー1
ジッパーが好きです。
デフォルトでは、zipは「(記号)リンクによって参照されるファイルを圧縮して保存する」ようです。
その逆はスイッチを使うことです--symlinks
。
--symlinks
For UNIX and VMS (V8.3 and later), store symbolic links as such in
the zip archive, instead of compressing and storing the file referred
to by the link. This can avoid multiple copies of files being in‐
cluded in the archive as zip recurses the directory trees and ac‐
cesses files directly and by links.