7Zip: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
cd /etc/nginx | cd /etc/nginx | ||
7z a chorke-nginx_academia-production-20240628-T2023-ZP0800.7z sites-enabled | 7z a chorke-nginx_academia-production-20240628-T2023-ZP0800.7z sites-enabled | ||
7z a chorke-nginx_academia-production-20240628-T2023-ZP0800.7z sites-enabled -x! | 7z a chorke-nginx_academia-production-20240628-T2023-ZP0800.7z sites-enabled '-psadaqah!' | ||
7z a chorke-nginx_academia-production-20240628-T2023-ZP0800.7z sites-enabled -xr! | 7z a chorke-nginx_academia-production-20240628-T2023-ZP0800.7z sites-enabled '-x!default' | ||
7z a chorke-nginx_academia-production-20240628-T2023-ZP0800.7z sites-enabled '-xr!default' | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 08:27, 29 June 2024
sudo apt -qq update sudo apt install -y p7zip-full 7z
Compress
cd /etc/nginx
7z a chorke-nginx_academia-production-20240628-T2023-ZP0800.7z sites-enabled
7z a chorke-nginx_academia-production-20240628-T2023-ZP0800.7z sites-enabled '-psadaqah!'
7z a chorke-nginx_academia-production-20240628-T2023-ZP0800.7z sites-enabled '-x!default'
7z a chorke-nginx_academia-production-20240628-T2023-ZP0800.7z sites-enabled '-xr!default'
Decompress
7z l chorke-nginx_academia-production-20240628-T2023-ZP0800.7z
7z e chorke-nginx_academia-production-20240628-T2023-ZP0800.7z
7z x chorke-nginx_academia-production-20240628-T2023-ZP0800.7z
7z x chorke-nginx_academia-production-20240628-T2023-ZP0800.7z -o./chorke-nginx-academia-production/
Commands
a : Add files to archive b : Benchmark d : Delete files from archive e : Extract files from archive (without using directory names) h : Calculate hash values for files i : Show information about supported formats l : List contents of archive rn : Rename files in archive t : Test integrity of archive u : Update files to archive x : eXtract files with full paths
DateTime Format
echo "$(date +'%Y%m%d-T%H%M')-Z$(date +'%z'|tr '+-' 'PM')"
:'
20240628-T2023-ZP0800
├─ 20240628
│ ├─ 2024 « %Y
│ ├─ 06 « m%
│ └─ 28 « %d
├─ -T2023
│ ├─ - « -
│ ├─ T « Time
│ ├─ 20 « %H
│ └─ 23 « %M
└─ -ZP0800
├─ - « -
├─ Z « Zone
├─ P « {P: Plus (+), M:Minus (-)}
└─ 0800 « Time Offset
'
References
| ||