archive

GZip on Linux to archive files specified in the text file

旧巷老猫 提交于 2019-12-13 07:27:31
问题 I have a text file with paths to the list of files I want to compress into a singe archive. How can I pass this file to GZIP so it can create that archive with all files specified in the list? Milan 回答1: gzip can only handle a single file at a time. You'll need to archive the files using tar first. Tar can do the compression at the same time (using the "z" argument). tar cfz archive.tar.gz `cat file` 回答2: Well, in the first place, gzip doesn't compress multiple files into a single one, so you

Jenkins - create a tar.gz from various ear and deliver it on a distant server

一世执手 提交于 2019-12-13 03:39:18
问题 I have a maven build which produces a target/myModule.ear for each module it builds. I want to create a Jenkins job which : 1) Build the project with a "mvn clean install" 2) Archive all the ear into a tar.gz 3) Deliver this tar.gz on a distant server I am very new to Jenkins so I don't know how to do 2) and 3). The only solution I can come up with is to create a script, but if I do that there is no point in using Jenkins. 回答1: You need a parent project which has a war/jar and an ear project

Symfony2 - Setting up a blog archive

假装没事ソ 提交于 2019-12-13 00:56:09
问题 I've been working on trying to setup a blog archive for a blog site where the use clicks on a date and the corresponding posts appear. (see image) I understand I need to retrieve all my blog posts and sort by date, but the steps after that are foggy to me. Taking that data then sorting it by month/year and passing it to a template is the part I am having trouble with. Can someone shed some light on what I am doing wrong or provide a simple working example? What I have thus far: public

PHP shell tar problem, return code 2

て烟熏妆下的殇ゞ 提交于 2019-12-13 00:35:37
问题 Want to archive a folder using tar from PHP: $result = shell_exec("tar cf $sourceFile $sourceFolder -C $source > /dev/null; echo $?"); var_dump($result); Output: string(2) "2 " the > /dev/null; echo $? thing is for outputing the result code of a script under linux; the -C $source - changes to the right folder before doing anything This is really strange because when i run this from linux console, it works just fine - creates the archive, so it's not a permission issue. Other sripts like

C Turning lines of an archive into arrays

前提是你 提交于 2019-12-13 00:24:02
问题 I have an archive and I want to turn every line into an array: v[i].data. However, when I run the code it shows zeros for the arrays. Is there anything I should change? Input 1760 02/20/18,11403.7 02/19/18,11225.3 02/18/18,10551.8 02/17/18,11112.7 02/16/18,10233.9 Actual Output 1761 0 Expected Output 1761 02/20/18,11403.7 #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> typedef struct{ char data[20]; }vetor; int main(int argc,char *argv[]){ FILE *csv; if((csv=fopen

How can I identify a WinRAR SFX using a binary signature of some sort?

巧了我就是萌 提交于 2019-12-12 20:02:00
问题 I'm looking for an answer similar to the one in this question, but for WinRAR instead of 7zip. Essentially I want an authoritative signature that I can say at least "All WinRAR generated self-extracting executables created with the Default SFX file in version 420 will have bytes 0x15, 0xa1, 0x45, 0xcc, 0x21, 0x98 at location 0x00027400, and other NON SFX files are unlikely to have this signature". Even better, if the same signature can be found in all versions of the WinRAR SFX files, even if

PHP library that can list contents of zip / rar files [closed]

一曲冷凌霜 提交于 2019-12-12 15:30:45
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Note: I NEED A LIBRARY not links to documentation about extensions my host doesn't have or want installed. The subject says it all. I

hadoop map reduce -archives not unpacking archives

风流意气都作罢 提交于 2019-12-12 09:54:14
问题 hope you can help me. I've got a head-scratching problem with hadoop map-reduce. I've been using the "-files" option successfully on a map-reduce, with hadoop version 1.0.3. However, when I use the "-archives" option, it copies the files, but does not uncompress them. What am I missing? The documentation says "Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes", but that's not what I'm seeing. I have created 3 files - a text file "alice.txt", a zip file "bob.zip"

SQL Server Data Archive Solution

泪湿孤枕 提交于 2019-12-12 08:47:58
问题 I'm looking for a solution to archive data that exists in my database. My database is SQL Server 2008 and have approximately 250 tables. I search web and find the below link : http://www.dbazine.com/sql/sql-articles/charran13/ but this solution is not clear I don't know that is there a direct way for doing this in sql server. please give me a solution. 回答1: The solution that you choose to rollout will be dependent on your reasons for implementing data archival. For example you will need to

SQL Server: Importing and archiving weekly data

↘锁芯ラ 提交于 2019-12-12 05:09:25
问题 Any ideas/suggestions appreciated.... I've been asked to come up with a simple way to import new data we receive from an outside vendor (text files). We get several text files and each needs to be imported into its own table. Some tables have to have the current/existing data moved into a table called TABLENAME_Previous (to work with various existing reports), then have the current table emptied out and the new data imported into it. Also, any data now in the "previous" table has to be