Create a tar.xz in one command
I am trying to create a .tar.xz compressed archive in one command. What is the specific syntax for that? I have tried tar cf – file | xz file.tar.xz, but that does not work. 6 Answers 6
I am trying to create a .tar.xz compressed archive in one command. What is the specific syntax for that? I have tried tar cf – file | xz file.tar.xz, but that does not work. 6 Answers 6
I have a file that contain list of files I want to archive with tar. Let’s call it mylist.txt It contains: file1.txt file2.txt … file10.txt Is there a way I can issue TAR command that takes mylist.txt as input? Something like tar -cvf allfiles.tar -[someoption?] mylist.txt So that it is similar as if I issue … Read more
How do I set the images so that I can archive and validate my app? The screen looks like this now: So the first one says 29pt, but then it also says 2x. So do I put a 29×29 image or a 58×58 image? And where do I put all of the other ones? (I … Read more
I’ve submitted three versions of my app onto the App Store using the Build and Archive commands. But… Where are those archives? I’ve just learnt that I just need them to be able to read crashlogs. My ~/Library/Developer/Xcode/Archives folder is empty (in fact there is one xarchive file inside it I’ve just generated now to … Read more
Is it possible to create a zip archive using PowerShell? 24 Answers 24
I typically do: tar -czvf my_directory.tar.gz my_directory What if I just want to include everything (including any hidden system files) in my_directory, but not the directory itself? I don’t want: my_directory — my_file — my_file — my_file I want: my_file my_file my_file 20 Answers 20 Use the -C switch of tar: tar -czvf my_directory.tar.gz -C … Read more
How can I create a zip archive of a directory structure in Python? 27 s 27 The easiest way is to use shutil.make_archive. It supports both zip and tar formats. import shutil shutil.make_archive(output_filename, ‘zip’, dir_name) If you need to do something more complicated than zipping the whole directory (such as skipping certain files), then you’ll … Read more
Is there a simple shell command/script that supports excluding certain files/folders from being archived? I have a directory that need to be archived with a sub directory that has a number of very large files I do not need to backup. Not quite solutions: The tar –exclude=PATTERN command matches the given pattern and excludes those … Read more