Without looking through pages of source code, can someone give me the bash commands to zip a folder with structure, but not creating a double layer zip file?
KDE can do this. How does it work?
tar -caf "/var/log/VirusVault/VirusFound_${Current_Date}.tar.gz" -C "/var/log/VirusVault" "VirusFound_${Current_Date}" --remove-files
This creates a single level compressed. I need it to keep this structure.
click on the folder, top level: VirusFound
# ls -R VirusFound
VirusFound:
linux_Y2021.M05.D02.H09.M28.S14.1620016094 linux_Y2021.M06.D15.H09.M24.S57.1623817497 linux_Y2022.M01.D30.H11.M17.S25.1643613445 mswin_Y2021.M04.D27.H01.M06.S06.1619510766
VirusFound/linux_Y2021.M05.D02.H09.M28.S14.1620016094:
ResHacker.exe scanresults.log
VirusFound/linux_Y2021.M06.D15.H09.M24.S57.1623817497:
scanresults.log
VirusFound/linux_Y2022.M01.D30.H11.M17.S25.1643613445:
pip-20.2.3-py2.py3-none-any.whl scanresults.log t32.exe t64.exe w32.exe w64.exe
VirusFound/mswin_Y2021.M04.D27.H01.M06.S06.1619510766:
MSOSYNC.EXE ONENOTEM.EXE scanresults.log