Quantcast
Browsing latest articles
Browse All 3 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 latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>