Quantcast
Channel: Compressing multiple files in different folders without folder structure - Unix & Linux Stack Exchange
Browsing all 3 articles
Browse latest View live

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 Article



Answer 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 Article

Compressing 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
Browsing all 3 articles
Browse latest View live




Latest Images