![]() Tar -cvzf Projects -exclude='Projects/Desktop GUI/project_env' -exclude='Projects/blockchain/project_env' -exclude='Projects/rnet/rnet/project_env'īut every single time, the project_env files get included (not sure about node_modules as on this machine I don't think I have any JS/TS projects, but I stop the tar operation as soon as I see it archiving project_env folders). tar -exclude./folder -exclude./upload/folder2 cfzv. Then trying it listing all the project_env directories (using relative path): Tar archives combine multiple files and/or directories together into a single file. Then using a separate file to list exclusions with the -X tag:įind Projects -d -name *project_env* > excludefiles ‘-tape-lengthnumsuf’ ‘-L numsuf’ Specifies the length of tapes that tar is writing as being num x 1024 bytes long. exclude-ignore-recursiveFILE Same as -exclude-ignore, except that patterns from FILE affect both the directory and all its subdirectories. ‘-suffixsuffix’ Alters the suffix tar uses when backing up files from the default ‘’.See section Backup options. Tar -cvzf Projects -exclude=*node_modules/ -exclude=*project_env/ See section Modifying File and Member Names. Tar -cvzf Projects -exclude=node_modules/ -exclude=project_env/ There are a number of node_modules folders as well as project_env folders (which is where I create my project environments for python projects). I am trying to create an archive of my projects folder. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |