Last active
March 22, 2024 11:21
-
-
Save luckydevilru/b8a852bc7f992b142d9ede246690d9c4 to your computer and use it in GitHub Desktop.
админиcтрирование linux ubuntu шпаргалка
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
архивирование файлов с исключением папок, файлов: | |
tar -zcpvf site.tar.gz --exclude={upload/video,bitrix/backup,bitrix/cache,bitrix/managed_cache,/.git,/upload} | |
zip -r apps.zip ../apps -x "**/vendor/*" -x "**/logs/*" -x "**/log/*" -x "**/.idea/*" -x "**/upload/*" -x "**/uploads/*" -x "**/.git/*" -x "**/cache/*" -x "**/bundles/*" -x "**/bundle/*" -x "*.sqlite" -x "*.tar" -x "*.zip" -x "*.gz" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment