Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sync zip file with folder?

I know specifying a zip file in the command add the files to the zip file itself, but how can I really sync a folder having already a zip file so that it does add new files, replace modified files and delete absent files in the folder?

like image 431
untore Avatar asked Sep 06 '25 05:09

untore


1 Answers

The command-line "zip" tool has the -FS (or --filesync) flag that does exactly this (updates existing, adds new, deletes removed).

See http://www.info-zip.org/mans/zip.html.

like image 176
Nikola Benes Avatar answered Sep 09 '25 02:09

Nikola Benes