LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2010, 04:01 AM   #1
becoolufull
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Rep: Reputation: 0
RAR not including subdirectories. WARNING NO FILES


I am trying to create a script.

$test=exec ("rar a -r -v10M /var/www/html/utl/packed/folder.rar /var/www/html/utl/Downloads/folder/");


There is no files in /var/www/html/utl/Downloads/folder/ but a few folders are there which need to be added to folder.rar

I am using correct exec and outputting it in php but output shows me Warning: No files

I need to archive everything inside a folder. Subdirectory, files etc. Please help
 
Old 10-19-2010, 09:47 PM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,253

Rep: Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686
Does it have to be rar? tar could do this quite easily for you:
Code:
tar acf /var/www/html/utl/packed/folder.tar.bz2 /var/www/html/utl/Downloads/folder/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to deal with .rar files in linux now that rar is no longer part of linux Lleb_KCir Linux - Software 14 11-22-2008 08:01 AM
question on how to rar multiple files into there own rar file steve51184 Linux - Software 13 10-24-2007 05:23 PM
Including header files and source files for classes Feenix Programming 8 09-28-2005 11:53 AM
FTP transfer including subdirectories for Linux Redhat 7.2 asaba Linux - Software 2 11-04-2004 03:17 AM
Unzipping all .gz files in all subdirectories darin3200 Linux - General 10 04-24-2004 10:58 PM


All times are GMT -5. The time now is 11:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration