Last active
September 16, 2025 12:13
-
-
Save Feiron/3e2433b4aeae4f5eaab92cf98ce3ae79 to your computer and use it in GitHub Desktop.
[tar.gz] #linux#centos
This file contains hidden or 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 czf name_of_archive_file.tar.gz name_of_directory_to_tar | |
| tar cvf some.tar file1 file2 file3 | |
| #Исключаем директорию | |
| tar --exclude='./folder' --exclude='./upload/folder2' -zcvf /backup/filename.tgz . | |
| #пример | |
| tar --exclude='./.git' -zcvf www_feiron.tar.gz . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment