↧
Answer by Kannan Mohan for Compressing multiple files in different folders...
Adding to @Marks answerWe can do it with the help of -T and --transform switches of tar command.I have the directory structure as below.|-- foo1| |-- file1.txt| |-- file2.txt| `-- file3.txt|-- foo2|...
View ArticleAnswer by Mark Wagner for Compressing multiple files in different folders...
GNU tar supports --transform=expression. In your case it would be --transform s,/,-, (except there would be no leading - which I suspect would be OK).
View ArticleCompressing multiple files in different folders without folder structure
Currently I create a copy of my log files like this:# tar -cvzf /var/www/vhosts/example.com/httpdocs/myfiles.tar.gz /var/www/vhosts/example.com/logs/access_log...
View Article